Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fda2ab commit 461ae12Copy full SHA for 461ae12
1 file changed
lib/matplotlib/rcsetup.py
@@ -408,9 +408,8 @@ def deprecate_axes_colorcycle(value):
408
validate_colorlist.__doc__ = 'return a list of colorspecs'
409
410
def validate_string(s):
411
- if isinstance(s, str): # Always leave str as str
412
- return s
413
- elif isinstance(s, six.text_type):
+ if isinstance(s, (str, six.text_type)):
+ # Always leave str as str and unicode as unicode
414
return s
415
else:
416
return str(s)
0 commit comments