[gedit-plugins/wip/python3] global apply does not exists anymore



commit 041cd8f69a11a51641c16a4ec66334763125e92d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Nov 6 19:03:49 2012 +0100

    global apply does not exists anymore

 .../commander/commands/rollbackimporter.py         |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/commander/commander/commands/rollbackimporter.py b/plugins/commander/commander/commands/rollbackimporter.py
index d4543ca..ff1c23b 100644
--- a/plugins/commander/commander/commands/rollbackimporter.py
+++ b/plugins/commander/commander/commands/rollbackimporter.py
@@ -34,10 +34,10 @@ class RollbackImporter:
     def cancel(self):
         __builtins__['__import__'] = self._original_import
 
-    def _import(self, name, globals=None, locals=None, fromlist=[], level=-1):
+    def _import(self, name, globals=None, locals=None, fromlist=[], level=0):
         maybe = not name in sys.modules
 
-        mod = apply(self._original_import, (name, globals, locals, fromlist, level))
+        mod = self._original_import(*(name, globals, locals, fromlist, level))
 
         if maybe and utils.is_commander_module(mod):
             self._new_modules.append(name)



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