We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0593c59 + 46f1995 commit af9a17bCopy full SHA for af9a17b
lib/matplotlib/__init__.py
@@ -906,7 +906,9 @@ def __str__(self):
906
907
def __iter__(self):
908
"""Yield sorted list of keys."""
909
- yield from sorted(dict.__iter__(self))
+ with warnings.catch_warnings():
910
+ warnings.simplefilter('ignore', MatplotlibDeprecationWarning)
911
+ yield from sorted(dict.__iter__(self))
912
913
def __len__(self):
914
return dict.__len__(self)
@@ -928,8 +930,7 @@ def find_all(self, pattern):
928
930
if pattern_re.search(key))
929
931
932
def copy(self):
- return {k: dict.__getitem__(self, k)
- for k in self}
933
+ return {k: dict.__getitem__(self, k) for k in self}
934
935
936
def rc_params(fail_on_error=False):
0 commit comments