8000 Updated docstring for ``RcParams.find_all``. · matplotlib/matplotlib@d16ab91 · GitHub
[go: up one dir, main page]

Skip to content

Commit d16ab91

Browse files
committed
Updated docstring for RcParams.find_all.
1 parent f8d2894 commit d16ab91

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/matplotlib/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -742,12 +742,14 @@ def __repr__(self):
742742
import pprint
743743
class_name = self.__class__.__name__
744744
indent = len(class_name) + 1
745-
repr_split = pprint.pformat(dict(self), indent=1, width=80 - indent).split('\n')
745+
repr_split = pprint.pformat(dict(self), indent=1,
746+
width=80 - indent).split('\n')
746747
repr_indented = ('\n' + ' ' * indent).join(repr_split)
747-
return '{}({})'.format(class_name, repr_indented)
748+
return '{0}({1})'.format(class_name, repr_indented)
748749

749750
def __str__(self):
750-
return '\n'.join('{}: {}'.format(k, v) for k, v in sorted(self.items()))
751+
return '\n'.join('{0}: {1}'.format(k, v)
752+
for k, v in sorted(self.items()))
751753

752754
def keys(self):
753755
"""
@@ -765,8 +767,8 @@ def values(self):
765767

766768
def find_all(self, pattern):
767769
"""
768-
Return the subset of this RcParams dictionary for which the given
769-
``pattern`` string is found, by :func:`re.search`, somewhere in the key.
770+
Return the subset of this RcParams dictionary whose keys match,
771+
using :func:`re.search`, the given ``pattern``.
770772
771773
.. note::
772774

0 commit comments

Comments
 (0)
0