4218c19913fa2672cc30a0354efdd8ea291609da,PyInstaller/hooks/hook-usb.py,,,#,21

Before Change


    binaries = []
    for usblib in [getattr(usb.backend, be)._lib for be in backends]:
        if usblib is not None:
            binaries = [(usblib._name, "")]

except (ValueError, usb.core.USBError) as exc:
    logger.warning("%s", exc)

After Change


    binaries = []
    for usblib in [getattr(usb.backend, be)._lib for be in backends]:
        if usblib is not None:
            binaries = _resolveCtypesImports([os.path.basename(usblib._name)])
            assert len(binaries[0]) == 3
            binaries = [(binaries[0][1], "")]

except (ValueError, usb.core.USBError) as exc:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: 4218c19913fa2672cc30a0354efdd8ea291609da
Time: 2018-02-25
Author: fredrik@z80.se
File Name: PyInstaller/hooks/hook-usb.py
Class Name:
Method Name:


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: d7be73a4eb0f2458752978eb58153202b6bfc2e7
Time: 2018-03-13
Author: max.lapan@gmail.com
File Name: ch18/telegram-bot.py
Class Name: PlayerBot
Method Name: _read_leaderboard


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: