Skip to content

Commit

Permalink
Merge pull request #3323 from MrLeeh/patch-2
Browse files Browse the repository at this point in the history
BUG : fixes py3k unicode issues

Replaced unicode() function by six.text_type
  • Loading branch information
tacaswell committed Jul 29, 2014
1 parent 572731f commit 49bb323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/qt_editor/formlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def get(self):
elif tuple_to_qfont(value) is not None:
value = field.get_font()
elif isinstance(value, six.string_types) or is_color_like(value):
value = unicode(field.text())
value = six.text_type(field.text())
elif isinstance(value, (list, tuple)):
index = int(field.currentIndex())
if isinstance(value[0], (list, tuple)):
Expand Down

0 comments on commit 49bb323

Please sign in to comment.