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

Skip to content

Commit 69f2a04

Browse files
committed
Solved compatibility error with python 3+
1 parent c5770fd commit 69f2a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

Lines 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)