e7438800ff547ae4b8bcbd5ee1b46d02d541eeb7,lib/matplotlib/backends/qt_compat.py,,,#,22

Before Change


        dict.__setitem__(rcParams, "backend.qt4", QT_API_PYQTv2)
    elif QT_API_ENV == "pyside":
        dict.__setitem__(rcParams, "backend.qt4", QT_API_PYSIDE)
    QT_API = dict.__getitem__(rcParams, "backend.qt4")
// A non-Qt backend was selected but we still got there (possible, e.g., when
// fully manually embedding Matplotlib in a Qt app without using pyplot).
else:
    try:

After Change


// only override the binding, not the backend (in other words, we check that the
// requested backend actually matches).
elif rcParams["backend"] in ["Qt5Agg", "Qt5Cairo"]:
    if QT_API_ENV in ["pyqt5", "pyside2"]:
        QT_API = _ETS[QT_API_ENV]
    else:
        QT_API = None
elif rcParams["backend"] in ["Qt4Agg", "Qt4Cairo"]:
    if QT_API_ENV in ["pyqt4", "pyside"]:
        QT_API = _ETS[QT_API_ENV]
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: matplotlib/matplotlib
Commit Name: e7438800ff547ae4b8bcbd5ee1b46d02d541eeb7
Time: 2019-02-23
Author: tcaswell@gmail.com
File Name: lib/matplotlib/backends/qt_compat.py
Class Name:
Method Name:


Project Name: biolab/orange3
Commit Name: 549645246bf957b98545a7a0b39813e50d6e4c30
Time: 2013-02-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/gui.py
Class Name: ControlledList
Method Name: __setitem__


Project Name: matplotlib/matplotlib
Commit Name: da25c513e420a84d3b8a0a18329c0da9a7b94da3
Time: 2019-02-12
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/qt_compat.py
Class Name:
Method Name: