demandimport: backout fe31f834a9ff stable
authorSteve Borho <steve@borho.org>
Thu, 21 Oct 2010 10:13:03 -0500
branchstable
changeset 12801 cddea24aafed
parent 12800 598bf07fc896
child 12802 c82cd7b08158
demandimport: backout fe31f834a9ff Using a keyword argument here breaks zipimporter for at least some versions of Python2.6 on Windows.
mercurial/demandimport.py
--- a/mercurial/demandimport.py	Thu Oct 21 11:23:26 2010 +0200
+++ b/mercurial/demandimport.py	Thu Oct 21 10:13:03 2010 -0500
@@ -45,7 +45,7 @@
         if not self._module:
             head, globals, locals, after, level = self._data
             if level is not None:
-                mod = _origimport(head, globals, locals, level=level)
+                mod = _origimport(head, globals, locals, level)
             else:
                 mod = _origimport(head, globals, locals)
             # load submodules