deb64d5510f1e10fbe21edb511eb3ec698d95bf0,tests/old_suite/import/test_c_extension.py,,,#,22
Before Change
modpath = os.path.join(sys.prefix, "simplejson._speedups")
frozen_modpath = os.path.splitext(_speedups.__file__)[0]
print(("Module path expected: " + modpath))
print(("Module path current: " + frozen_modpath))
After Change
// ".cpython-33m.so"), so we can not simply use os.path.splitext(), but
// have to loop over all possible extensions.
for ext in EXTENSION_SUFFIXES:
if modpath + ext == frozen_modpath:
print(" matched:", modpath + ext, file=sys.stderr)
break
else:
if not getattr(sys, "frozen", False):
raise SystemExit("This script only works corretly when frozen")
raise SystemExit("Python C-extension file name is not correct.")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pyinstaller/pyinstaller
Commit Name: deb64d5510f1e10fbe21edb511eb3ec698d95bf0
Time: 2015-07-30
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/import/test_c_extension.py
Class Name:
Method Name:
Project Name: fperazzi/proSR
Commit Name: 6b7b82ff60b8ca7a26b50e50210a06a46bdc848a
Time: 2018-07-09
Author: fperazzi@adobe.com
File Name: lib/prosr/models/generators.py
Class Name: ProSR
Method Name: forward
Project Name: pyinstaller/pyinstaller
Commit Name: deb64d5510f1e10fbe21edb511eb3ec698d95bf0
Time: 2015-07-30
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/import/test_onefile_c_extension.py
Class Name:
Method Name: