File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ def validate_color_for_prop_cycle(s):
353
353
if match is not None :
354
354
raise ValueError ('Can not put cycle reference ({cn!r}) in '
355
355
'prop_cycler' .format (cn = s ))
356
- elif isinstance (s , six .text_type ):
356
+ elif isinstance (s , six .string_types ):
357
357
match = re .match ('^C[0-9]$' , s )
358
358
if match is not None :
359
359
raise ValueError ('Can not put cycle reference ({cn!r}) in '
@@ -855,7 +855,7 @@ def validate_cycler(s):
855
855
856
856
857
857
def validate_hist_bins (s ):
858
- if isinstance (s , six .text_type ) and s == 'auto' :
858
+ if isinstance (s , six .string_types ) and s == 'auto' :
859
859
return s
860
860
try :
861
861
return int (s )
@@ -874,7 +874,7 @@ def validate_animation_writer_path(p):
874
874
# Make sure it's a string and then figure out if the animations
875
875
# are already loaded and reset the writers (which will validate
876
876
# the path on next call)
877
- if not isinstance (p , six .text_type ):
877
+ if not isinstance (p , six .string_types ):
878
878
raise ValueError ("path must be a (unicode) string" )
879
879
from sys import modules
880
880
# set dirty, so that the next call to the registry will re-evaluate
You can’t perform that action at this time.
0 commit comments