mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Code beautification using f-strings (#5618)
This commit is contained in:
parent
988fb28431
commit
136c8e0795
1 changed files with 1 additions and 2 deletions
|
@ -933,8 +933,7 @@ class ChainMap(_collections_abc.MutableMapping):
|
||||||
|
|
||||||
@_recursive_repr()
|
@_recursive_repr()
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '{0.__class__.__name__}({1})'.format(
|
return f'{self.__class__.__name__}({", ".join(map(repr, self.maps))})'
|
||||||
self, ', '.join(map(repr, self.maps)))
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def fromkeys(cls, iterable, *args):
|
def fromkeys(cls, iterable, *args):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue