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

Skip to content

Commit 4a40ba5

Browse files
committed
Make is_string_like work with boost python wrapped sequences
svn path=/branches/v0_98_5_maint/; revision=6802
1 parent 1c9ae94 commit 4a40ba5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
2009-11-16 Bugfix of C typedef of MPL_Int64 that was failing on
1+
2009-01-16 Fix bug in is_string_like so it doesn't raise an
2+
unnecessary exception. - EF
3+
4+
2009-01-16 Bugfix of C typedef of MPL_Int64 that was failing on
25
Windows XP 64 bit, as reported by George Goussard on numpy
36
mailing list. - ADS
47

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def is_string_like(obj):
275275
else:
276276
return False
277277
try: obj + ''
278-
except (TypeError, ValueError): return False
278+
except: return False
279279
return True
280280

281281
def is_sequence_of_strings(obj):

0 commit comments

Comments
 (0)