Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebb3741

Browse files
committed
ENH: improve PySide2 loading
Fixed number of arguments and pep 8 issue
1 parent 7f9c605 commit ebb3741

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/qt_compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
except KeyError:
7070
raise RuntimeError(
7171
('Unrecognized environment variable %r, valid values are:'
72-
' %r, %r or %r' % (QT_API_ENV, 'pyqt', 'pyside', 'pyqt5', 'pyside2')))
72+
' %r, %r, %r or %r'
73+
% (QT_API_ENV, 'pyqt', 'pyside', 'pyqt5', 'pyside2')))
7374
if QT_ENV_MAJOR_VERSION == QT_RC_MAJOR_VERSION:
7475
# Only if backend and env qt major version are
7576
# compatible use the env variable.

0 commit comments

Comments
 (0)