@@ -742,12 +742,14 @@ def __repr__(self):
742
742
import pprint
743
743
class_name = self .__class__ .__name__
744
744
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 ' )
746
747
repr_indented = ('\n ' + ' ' * indent ).join (repr_split )
747
- return '{}({})' .format (class_name , repr_indented )
748
+ return '{0 }({1 })' .format (class_name , repr_indented )
748
749
749
750
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 ()))
751
753
752
754
def keys (self ):
753
755
"""
@@ -765,8 +767,8 @@ def values(self):
765
767
766
768
def find_all (self , pattern ):
767
769
"""
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`` .
770
772
771
773
.. note::
772
774
0 commit comments