fa7a65464d94f349af68b78470777ac6b57f081b,PyInstaller/hooks/hook-iu.py,,hook,#Any#,20
Before Change
removes = ["nt", "os2", "mac", "win32api"]
elif "mac" in names:
removes = ["nt", "dos", "os2", "win32api"]
for i in range(len(mod.imports)-1, -1, -1):
nm = mod.imports[i][0]
pos = nm.find(".")
if pos > -1:
nm = nm[:pos]
if nm in removes:
del mod.imports[i]
return mod
After Change
removes = ["nt", "os2", "mac", "win32api"]
elif "mac" in names:
removes = ["nt", "dos", "os2", "win32api"]
mod.imports = [m
for m in mod.imports
// if first part of module-name not in removes
if m[0].split(".", 1)[0] not in removes
]
return mod
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: pyinstaller/pyinstaller
Commit Name: fa7a65464d94f349af68b78470777ac6b57f081b
Time: 2011-11-23
Author: h.goebel@goebel-consult.de
File Name: PyInstaller/hooks/hook-iu.py
Class Name:
Method Name: hook
Project Name: pyinstaller/pyinstaller
Commit Name: 65546b26dd142eb99f34c968b03987032a25888f
Time: 2011-11-23
Author: h.goebel@goebel-consult.de
File Name: PyInstaller/hooks/hook-os.py
Class Name:
Method Name: hook
Project Name: WheatonCS/Lexos
Commit Name: ff32437fbf3693f454a9387af3b1678e6cf29832
Time: 2017-11-01
Author: delandaluce_alvaro@wheatoncollege.edu
File Name: lexos/models/content_analysis_model.py
Class Name: ContentAnalysisModel
Method Name: delete_dictionary