Skip to content

Commit cea9000

Browse files
committed
Stop testing for QString, fixes AttributeError in PySide
1 parent a1f3814 commit cea9000

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/qt4_editor/formlayout.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def col2hex(color):
9797
def to_qcolor(color):
9898
"""Create a QColor from a matplotlib color"""
9999
qcolor = QtGui.QColor()
100-
if isinstance(color, QtCore.QString):
101-
color = str(color)
100+
color = str(color)
102101
try:
103102
color = col2hex(color)
104103
except ValueError:

0 commit comments

Comments
 (0)