Skip to content

Commit 4481344

Browse files
committed
Simplify warning message generation
1 parent cc46285 commit 4481344

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/contour.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -962,9 +962,7 @@ def __init__(self, ax, *args, **kwargs):
962962
self.changed() # set the colors
963963

964964
if kwargs:
965-
s = ''
966-
for key, value in kwargs.items():
967-
s += '"' + str(key) + '"' + ', '
965+
s = ", ".join(map(repr, kwargs))
968966
warnings.warn('The following kwargs were not used by contour: ' +
969967
s)
970968

0 commit comments

Comments
 (0)