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

Skip to content

Commit 49bb323

Browse files
committed
Merge pull request matplotlib#3323 from MrLeeh/patch-2
BUG : fixes py3k unicode issues Replaced unicode() function by six.text_type
1 parent 572731f commit 49bb323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_editor/formlayout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def get(self):
323323
elif tuple_to_qfont(value) is not None:
324324
value = field.get_font()
325325
elif isinstance(value, six.string_types) or is_color_like(value):
326-
value = unicode(field.text())
326+
value = six.text_type(field.text())
327327
elif isinstance(value, (list, tuple)):
328328
index = int(field.currentIndex())
329329
if isinstance(value[0], (list, tuple)):

0 commit comments

Comments
 (0)