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 wrap: on
line diff
--- a/viff/runtime.py	Fri Apr 25 11:27:02 2008 +0200
+++ b/viff/runtime.py	Fri Apr 25 11:54:29 2008 +0200
@@ -429,7 +429,9 @@
                          help="Enable extra debug output for deferreds.")
 
         try:
-            import gnutls
+            # Using __import__ since we do not use the module, we are
+            # only interested in the side-effect.
+            __import__('gnutls')
             have_gnutls = True
         except ImportError:
             have_gnutls = False