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

Skip to content

Commit 4075bf8

Browse files
committed
FIX: py2.6 format usage
1 parent c6c43cc commit 4075bf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/cbook.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,13 +2631,13 @@ def normalize_kwargs(kw, alias_mapping=None, required=(), forbidden=(),
26312631

26322632
fail_keys = [k for k in required if k not in ret]
26332633
if fail_keys:
2634-
raise TypeError("The required keys {!r} "
2635-
"are not in kwargs".format(fail_keys))
2634+
raise TypeError("The required keys {keys!r} "
2635+
"are not in kwargs".format(keys=fail_keys))
26362636

26372637
fail_keys = [k for k in forbidden if k in ret]
26382638
if fail_keys:
2639-
raise TypeError("The forbidden keys {!r} "
2640-
"are in kwargs".format(fail_keys))
2639+
raise TypeError("The forbidden keys {keys!r} "
2640+
"are in kwargs".format(keys=fail_keys))
26412641

26422642
if allowed is not None:
26432643
allowed_set = set(required) | set(allowed)

0 commit comments

Comments
 (0)