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

Skip to content

Commit 1241122

Browse files
committed
Merge pull request #5690 from pankajp/patch-1
Fix #5687: Don't pass unicode to QApplication()
1 parent 06bd110 commit 1241122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _create_qApp():
137137
if display is None or not re.search(':\d', display):
138138
raise RuntimeError('Invalid DISPLAY variable')
139139

140-
qApp = QtWidgets.QApplication([six.text_type(" ")])
140+
qApp = QtWidgets.QApplication([str(" ")])
141141
qApp.lastWindowClosed.connect(qApp.quit)
142142
else:
143143
qApp = app

0 commit comments

Comments
 (0)