751faa0ddb061be0644a8e41ea90a4ccbbf892bc,PyInstaller/loader/pyimod03_importers.py,FrozenImporter,get_code,#FrozenImporter#,425
Before Change
ImportError should be raised if module not found.
if fullname in self.toc:
try:
is_pkg, bytecode = self._pyz_archive.extract(fullname)
return bytecode
except Exception:
raise ImportError("Loader FrozenImporter cannot handle module " + fullname)
else:
raise ImportError("Loader FrozenImporter cannot handle module " + fullname)
def get_source(self, fullname):
Method should return the source code for the module as a string.
But frozen modules does not contain source code.
After Change
// extract() returns None if fullname not in the archive, thus the
// next line will raise an execpion which will be catched just
// below and raise the ImportError.
return self._pyz_archive.extract(fullname)[1]
except:
raise ImportError("Loader FrozenImporter cannot handle module " + fullname)
def get_source(self, fullname):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: pyinstaller/pyinstaller
Commit Name: 751faa0ddb061be0644a8e41ea90a4ccbbf892bc
Time: 2017-02-14
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/loader/pyimod03_importers.py
Class Name: FrozenImporter
Method Name: get_code
Project Name: daavoo/pyntcloud
Commit Name: f9b3bc145e981a05dd27abc8f2987692bf4d3b5c
Time: 2017-03-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: get_filter
Project Name: daavoo/pyntcloud
Commit Name: a2f318363a1c4dde386d7f7ac316baa706678b89
Time: 2017-03-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: get_sample