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

Skip to content

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)