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 ae005f3

Browse filesBrowse files
committed
FIX: over-ride 'copy' on RcParams
This is due to a fix on upstream cpython ( python/cpython@d45a961 ) which fixed the copy behavior to fall back to the sub-class's `__getitem__` which seems correct, but we were relying on it _not_ correctly hitting our custom `__getitem__`. closes #12601
1 parent 65bceb1 commit ae005f3
Copy full SHA for ae005f3

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,10 @@ def find_all(self, pattern):
924924
for key, value in self.items()
925925
if pattern_re.search(key))
926926

927+
def copy(self):
928+
return {k: dict.__getitem__(self, k)
929+
for k in self}
930+
927931

928932
def rc_params(fail_on_error=False):
929933
"""Return a :class:`matplotlib.RcParams` instance from the

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.