Thanks to visit codestin.com Credit goes to github.com
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 6af7450 + 2dd6fae commit c921e2eCopy full SHA for c921e2e
1 file changed
lib/matplotlib/__init__.py
@@ -885,7 +885,9 @@ def __str__(self):
885
886
def __iter__(self):
887
"""Yield sorted list of keys."""
888
- yield from sorted(dict.__iter__(self))
+ with warnings.catch_warnings():
889
+ warnings.simplefilter('ignore', MatplotlibDeprecationWarning)
890
+ yield from sorted(dict.__iter__(self))
891
892
def __len__(self):
893
return dict.__len__(self)
@@ -907,8 +909,7 @@ def find_all(self, pattern):
907
909
if pattern_re.search(key))
908
910
911
def copy(self):
- return {k: dict.__getitem__(self, k)
- for k in self}
912
+ return {k: dict.__getitem__(self, k) for k in self}
913
914
915
def rc_params(fail_on_error=False):
0 commit comments