ed737f4713443b97908cd0b34e610242bd934b9a,support/rthooks/pyi_rth_Image.py,,,#,5

Before Change


import pyi_iu

// Search all import directors for a PYZOwner one
for im in sys.importManager.metapath:
    if isinstance(im, pyi_iu.PathImportDirector):
        for arch in im.shadowpath.values():
            if isinstance(arch, pyi_archive.PYZOwner):
                // import all modules `*ImagePlugin`
                for name in arch.pyz.contents():
                    if name.endswith("ImagePlugin") and not "." in name:
                        __import__(name)

After Change




// Find FrozenImporter object from sys.meta_path.
importer = None
for obj in sys.meta_path:
    if isinstance(obj, pyi_importers.FrozenImporter):
        importer = obj
        break


// Explicitly import all PIL `*ImagePlugin` modules.
for name in importer.toc:
    if name.endswith("ImagePlugin") and not "." in name:
        __import__(name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 31

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: ed737f4713443b97908cd0b34e610242bd934b9a
Time: 2013-01-05
Author: mzibr.public@gmail.com
File Name: support/rthooks/pyi_rth_Image.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: 7bed961cedcf3dd0bf19db624e5ff048efbc2827
Time: 2012-12-19
Author: mzibr.public@gmail.com
File Name: support/rthooks/pyi_rth_Image.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: 7bed961cedcf3dd0bf19db624e5ff048efbc2827
Time: 2012-12-19
Author: mzibr.public@gmail.com
File Name: support/rthooks/pyi_rth_PIL_Image.py
Class Name:
Method Name: