Skip to content

Commit

Permalink
Fix _remove_blacklisted_style_params bug
Browse files Browse the repository at this point in the history
Tmp

Tmp
  • Loading branch information
lukelbd committed Apr 27, 2020
1 parent 002b27e commit 23470a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/style/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@

def _remove_blacklisted_style_params(d, warn=True):
o = {}
for key, val in d.items():
for key in d: # prevent triggering RcParams.__getitem__('backend')
if key in STYLE_BLACKLIST:
if warn:
cbook._warn_external(
"Style includes a parameter, '{0}', that is not related "
"to style. Ignoring".format(key))
else:
o[key] = val
o[key] = d[key]
return o


Expand Down

0 comments on commit 23470a8

Please sign in to comment.