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
// In Python3, filename extensions can include several dots (e.g.
// ".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: ilastik/ilastik
Commit Name: 5b470f8f8c0146591b42462c6b30e85a2117261f
Time: 2019-06-17
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: _createDatasetInfo
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: