Skip to content

Commit

Permalink
Fix matplotlib#5687: Don't pass unicode to QApplication()
Browse files Browse the repository at this point in the history
PySide QApplication constructor cannot handle unicode text.
  • Loading branch information
Pankaj Pandey committed Dec 18, 2015
1 parent 23bc09d commit 793accd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_qt5.py
Expand Up @@ -137,7 +137,7 @@ def _create_qApp():
if display is None or not re.search(':\d', display):
raise RuntimeError('Invalid DISPLAY variable')

qApp = QtWidgets.QApplication([six.text_type(" ")])
qApp = QtWidgets.QApplication([str(" ")])
qApp.lastWindowClosed.connect(qApp.quit)
else:
qApp = app
Expand Down

0 comments on commit 793accd

Please sign in to comment.