[pygi] Use the right variable when looking up in sys.modules



commit 4a373b8ad6ec137e911b92a3e745e0fd76541292
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Wed Nov 25 16:53:55 2009 +0100

    Use the right variable when looking up in sys.modules

 gi/importer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/importer.py b/gi/importer.py
index 5e7dfc3..f283a41 100644
--- a/gi/importer.py
+++ b/gi/importer.py
@@ -66,7 +66,7 @@ class DynamicImporter(object):
 
     def load_module(self, fullname):
         if fullname in sys.modules:
-            return sys.modules[name]
+            return sys.modules[fullname]
 
         path, namespace = fullname.rsplit('.', 1)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]