Skip to content

Commit

Permalink
Use PYQT4 constant in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodd committed Jun 11, 2016
1 parent 5eb32b7 commit 11873d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class PythonQtError(Exception):

API_NAME = {'pyqt5': 'PyQt5', 'pyqt': 'PyQt4', 'pyqt4': 'PyQt4',
'pyside': 'PySide'}[API]
if API in PYQT4_API:
if PYQT4:
import sip
try:
API_NAME += (" (API v{0})".format(sip.getapi('QString')))
Expand Down

0 comments on commit 11873d5

Please sign in to comment.