Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,13 @@ def find_all(self, pattern):

"""
pattern_re = re.compile(pattern)
return RcParams((key, value)
for key, value in self.items()
if pattern_re.search(key))
return self.__class__(
(key, value) for key, value in self.items() if pattern_re.search(key)
)

def copy(self):
"""Copy this RcParams instance."""
rccopy = RcParams()
rccopy = self.__class__()
for k in self: # Skip deprecations and revalidation.
rccopy._set(k, self._get(k))
return rccopy
Expand Down
Loading