1. pydica
  2. pydica
  3. tiffany

Commits

Christian Tismer  committed c5f7bc9

compatibility to python 3.3

  • Participants
  • Parent commits ed65783
  • Branches default

Comments (0)

Files changed (1)

File tiffany/import_mapper.py

View file
  • Ignore whitespace
         self.args = (name, gl, lc, fl, lv)
         context_path = os.path.dirname(sys._getframe(1).f_code.co_filename)
         if context_path != mapped_dir:
-            return orig__import(name, gl, lc, fl, lv)
+            return orig__import(name, gl, lc, fl, 0)
         if name == '':
             # undoing the relative imports from the python3 patch
             assert fl and len(fl) == 1