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

Lines changed: 1 addition & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy