4518bdb13ea9ae0af7b9457d4264345590130ed2,setup.py,,,#,8

Before Change


]


try:
    import PyQt5  // NOQA
    PYQT_VERSION = 5
except ImportError:
    try:
        import PyQt4  // NOQA
        PYQT_VERSION = 4
    except ImportError:
        if PY2:
            sys.stderr.write(
                "Please install PyQt4 or PyQt5 for Python2.\n"
                "Note that PyQt5 can be installed via pip for Python3.")
            sys.exit(1)
        assert PY3
        // PyQt5 can be installed via pip for Python3
        install_requires.append("pyqt5")
        PYQT_VERSION = 5


if sys.argv[1] == "release":
    commands = [
        "git tag v{:s}".format(version),
        "git push origin master --tag",

After Change


if QT_BINDING is None:
    try:
        import PyQt4  // NOQA
        QT_BINDING = "pyqt4"
    except ImportError:
        if PY2:
            sys.stderr.write(
                "Please install PyQt5, PySide2 or PyQt4 for Python2.\n"
                "Note that PyQt5 can be installed via pip for Python3.")
            sys.exit(1)
        assert PY3
        // PyQt5 can be installed via pip for Python3
        install_requires.append("pyqt5")
        QT_BINDING = "pyqt5"
del QT_BINDING


if sys.argv[1] == "release":
    commands = [
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: wkentaro/labelme
Commit Name: 4518bdb13ea9ae0af7b9457d4264345590130ed2
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: tensorly/tensorly
Commit Name: 6dcb645ed16ee44a53f68576c5812774cd9485f1
Time: 2018-09-27
Author: jiminy.crist@gmail.com
File Name: tensorly/__init__.py
Class Name:
Method Name:


Project Name: deepfakes/faceswap
Commit Name: d1705b08cdd747c1d37c578c8de2fa407cc520cf
Time: 2018-11-16
Author: 36920800+torzdf@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name: check_pip