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

Skip to content

Commit 6be06d2

Browse files
committed
more harness around locale
svn path=/branches/v0_99_maint/; revision=7541
1 parent c9ef229 commit 6be06d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
try:
2222
preferredencoding = locale.getpreferredencoding()
23-
except ValueError:
23+
except (ValueError, ImportError):
2424
preferredencoding = None
2525

2626
def unicode_safe(s):

0 commit comments

Comments
 (0)