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 69f2a04

Browse filesBrowse files
committed
Solved compatibility error with python 3+
1 parent c5770fd commit 69f2a04
Copy full SHA for 69f2a04

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎lib/matplotlib/cbook.py

Copy file name to clipboardExpand all lines: lib/matplotlib/cbook.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2851,7 +2851,7 @@ def _get_key_params(self):
28512851

28522852
try:
28532853
func = self._funcs[str_func]
2854-
except ValueError, KeyError:
2854+
except (ValueError, KeyError):
28552855
raise ValueError("%s: invalid string. The only strings "
28562856
"recognized as functions are %s." %
28572857
(str_func, list(self._funcs)))

0 commit comments

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