Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a39639f

Browse filesBrowse files
committed
Merge pull request #2534 from minrk/unicode-argv
cast argv to unicode before testing
2 parents dab724a + bd71341 commit a39639f
Copy full SHA for a39639f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class Verbose:
243243
# --verbose-silent or --verbose-helpful
244244
_commandLineVerbose = None
245245

246-
for arg in sys.argv[1:]:
246+
for arg in map(six.u, sys.argv[1:]):
247247
if not arg.startswith('--verbose-'):
248248
continue
249249
level_str = arg[10:]
@@ -1212,7 +1212,7 @@ def tk_window_focus():
12121212
# Allow command line access to the backend with -d (MATLAB compatible
12131213
# flag)
12141214

1215-
for s in sys.argv[1:]:
1215+
for s in map(six.u, sys.argv[1:]):
12161216
if s.startswith('-d') and len(s) > 2: # look for a -d flag
12171217
try:
12181218
use(s[2:])

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.