8000 Fix redundant dictionary update. · matplotlib/matplotlib@9909aeb · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9909aeb

Browse files
committed
Fix redundant dictionary update.
The `for` loop is supposed to check all fields in `kw` here, but `kw` does not change, so doing `kwargs.update(kw)` in the loop is a waste.
1 parent 9e20541 commit 9909aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def _translate_tick_kw(kw):
879879
raise ValueError(
880880
"keyword %s is not recognized; valid keywords are %s"
881881
% (key, kwkeys))
882-
kwtrans.update(kw)
882+
kwtrans.update(kw)
883883
return kwtrans
884884

885885
def set_clip_path(self, clippath, transform=None):

0 commit comments

Comments
 (0)
0