[gnome-doc-utils] Use the non-keyword __import__ call to be Python2.4-compliant



commit a1dd3fb3b579e8bc5d61e369d8666466b42f76f0
Author: Claude Paroz <claude 2xlibre net>
Date:   Sun Aug 9 22:45:03 2009 +0200

    Use the non-keyword __import__ call to be Python2.4-compliant

 xml2po/xml2po/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xml2po/xml2po/__init__.py b/xml2po/xml2po/__init__.py
index 59b8815..d6197ca 100644
--- a/xml2po/xml2po/__init__.py
+++ b/xml2po/xml2po/__init__.py
@@ -559,7 +559,7 @@ class Main(object):
 
     def load_mode(self, modename):
         try:
-            module = __import__('xml2po.modes.%s' % modename, fromlist=['%sXmlMode' % modename])
+            module = __import__('xml2po.modes.%s' % modename, globals(), locals(), ['%sXmlMode' % modename], -1)
             return getattr(module, '%sXmlMode' % modename)
         except (ImportError, AttributeError):
             if modename == 'basic':



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