Skip to content

Commit

Permalink
Merge pull request #182 from FedeMiorelli/patch-1
Browse files Browse the repository at this point in the history
PR: Prevent warnings for equivalent APIs
  • Loading branch information
ccordoba12 authored Mar 5, 2019
2 parents 91b4000 + 739dfde commit 8fc23ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qtpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ class PythonQtWarning(Warning):


if 'PyQt5' in sys.modules:
API = 'pyqt5'
API = initial_api if initial_api in PYQT5_API else 'pyqt5'
elif 'PySide2' in sys.modules:
API = 'pyside2'
API = initial_api if initial_api in PYSIDE2_API else 'pyside2'
elif 'PyQt4' in sys.modules:
API = 'pyqt4'
API = initial_api if initial_api in PYQT4_API else 'pyqt4'
elif 'PySide' in sys.modules:
API = 'pyside'
API = initial_api if initial_api in PYSIDE_API else 'pyside'


if API in PYQT5_API:
Expand Down

0 comments on commit 8fc23ce

Please sign in to comment.