7e8b3ec991803087e56ecedf3b70963b90cf411b,PyInstaller/hooks/hook-PyQt5.Qt.py,,,#,12

Before Change



// When PyQt5.Qt is imported it implies a certain need for a few of the
// other PyQt5 modules, but not all of them.
hiddenimports = ["sip",
                 "PyQt5.QtCore",
                 "PyQt5.QtGui",
                 "PyQt5.QtWidgets",
                 "PyQt5.QtPrintSupport"
                 ]

After Change



// Determine the name of all these modules by looking in the PyQt5 directory.
hiddenimports = []
for f in os.listdir(os.path.dirname(get_module_file_attribute("PyQt5"))):
    root, ext = os.path.splitext(os.path.basename(f))
    if root.startswith("Qt") and root != "Qt":
        hiddenimports.append("PyQt5." + root)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: 7e8b3ec991803087e56ecedf3b70963b90cf411b
Time: 2018-04-02
Author: bjones@ece.msstate.edu
File Name: PyInstaller/hooks/hook-PyQt5.Qt.py
Class Name:
Method Name:


Project Name: sankit1/cv-tricks.com
Commit Name: 84413e9d59f0018cef2ff7c9d6e18218fa02d097
Time: 2018-04-29
Author: 31088952+ShashwatHiregoudar@users.noreply.github.com
File Name: Tensorflow-tutorials/tutorial-2-image-classifier/train.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: e686762e970ee4c0748242e735c2b068b9af89cf
Time: 2017-03-10
Author: yuyuniitani@gmail.com
File Name: setup.py
Class Name:
Method Name: