viff

changeset 685:19b875e0d65d

Try importing gnutls without introducing an unused binding.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 25 Apr 2008 11:54:29 +0200
parents 95a26f4d2a9e
children 5b315ebb0618
files viff/runtime.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/runtime.py	Fri Apr 25 11:27:02 2008 +0200
     1.2 +++ b/viff/runtime.py	Fri Apr 25 11:54:29 2008 +0200
     1.3 @@ -429,7 +429,9 @@
     1.4                           help="Enable extra debug output for deferreds.")
     1.5  
     1.6          try:
     1.7 -            import gnutls
     1.8 +            # Using __import__ since we do not use the module, we are
     1.9 +            # only interested in the side-effect.
    1.10 +            __import__('gnutls')
    1.11              have_gnutls = True
    1.12          except ImportError:
    1.13              have_gnutls = False