Author: Manuel Jacob <m...@manueljacob.de> Branch: py3k Changeset: r78412:3cb6a7ae2fb7 Date: 2015-07-02 12:40 +0200 http://bitbucket.org/pypy/pypy/changeset/3cb6a7ae2fb7/
Log: 2to3 diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py --- a/pypy/module/imp/test/test_import.py +++ b/pypy/module/imp/test/test_import.py @@ -1407,15 +1407,15 @@ return self def load_module(self, fullname): assert fullname == 'meta_path_2_pseudo_module' - m = new.module('meta_path_2_pseudo_module') + m = types.ModuleType('meta_path_2_pseudo_module') m.__path__ = ['/some/random/dir'] sys.modules['meta_path_2_pseudo_module'] = m return m - import sys, new + import sys, types sys.meta_path.append(ImportHook()) try: - exec "from meta_path_2_pseudo_module import *" in {} + exec("from meta_path_2_pseudo_module import *", {}) finally: sys.meta_path.pop() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit