Skip to content

Commit 5c9ccf0

Browse files
committed
MNT : make sure to cast to unicode
1 parent f9feefe commit 5c9ccf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/rcsetup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def validate_colorlist(s):
263263
def validate_stringlist(s):
264264
'return a list'
265265
if isinstance(s, six.string_types):
266-
return [v.strip() for v in s.split(',')]
266+
return [six.text_type(v.strip()) for v in s.split(',')]
267267
else:
268268
assert type(s) in [list, tuple]
269269
return [six.text_type(v) for v in s]

0 commit comments

Comments
 (0)