Skip to content

Commit 461ae12

Browse files
committed
Minor stylistic tweak
1 parent 6fda2ab commit 461ae12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,8 @@ def deprecate_axes_colorcycle(value):
408408
validate_colorlist.__doc__ = 'return a list of colorspecs'
409409

410410
def validate_string(s):
411-
if isinstance(s, str): # Always leave str as str
412-
return s
413-
elif isinstance(s, six.text_type):
411+
if isinstance(s, (str, six.text_type)):
412+
# Always leave str as str and unicode as unicode
414413
return s
415414
else:
416415
return str(s)

0 commit comments

Comments
 (0)