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

Before Change


// First, check if anything is already imported.
if "PyQt5" in sys.modules:
    QT_API = QT_API_PYQT5
    dict.__setitem__(rcParams, "backend.qt5", QT_API)
elif "PySide2" in sys.modules:
    QT_API = QT_API_PYSIDE2
    dict.__setitem__(rcParams, "backend.qt5", QT_API)
elif "PyQt4" in sys.modules:

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: 4

Instances


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:


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: eth-cscs/reframe
Commit Name: cbc9da921206a6062f37177930ac52856871d60a
Time: 2021-03-09
Author: jotero@cscs.ch
File Name: reframe/core/meta.py
Class Name: MetaNamespace
Method Name: __setitem__