Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r93519:5a865516f947 Date: 2017-12-20 17:01 +0100 http://bitbucket.org/pypy/pypy/changeset/5a865516f947/
Log: Fix for test_package. This might fix the next issue for "pypy3 -m ensurepip". diff --git a/pypy/module/zipimport/interp_zipimport.py b/pypy/module/zipimport/interp_zipimport.py --- a/pypy/module/zipimport/interp_zipimport.py +++ b/pypy/module/zipimport/interp_zipimport.py @@ -252,6 +252,8 @@ gets in code_object.co_filename. Something like 'myfile.zip/mymodule.py' """ + if ZIPSEP != os.path.sep: + filename = filename.replace(ZIPSEP, os.path.sep) return self.filename + os.path.sep + filename def load_module(self, space, w_fullname): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit