Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b13440

Browse files
committed
Fixing bug in is_sequence_of_strings.
svn path=/trunk/matplotlib/; revision=5789
1 parent 5e6c0bf commit 0b13440

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/cbook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def is_sequence_of_strings(obj):
275275
Returns true if *obj* is iterable and contains strings
276276
"""
277277
if not iterable(obj): return False
278+
if is_string_like(obj): return False
278279
for o in obj:
279280
if not is_string_like(o): return False
280281
return True

0 commit comments

Comments
 (0)