summaryrefslogtreecommitdiffstats
path: root/Lib/collections/__init__.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-02-11 16:00:11 (GMT)
committerGitHub <noreply@github.com>2018-02-11 16:00:11 (GMT)
commit136c8e07955392676680c8e29ab96017127b6672 (patch)
tree8cd3cdaeaf046cd2ab56f9bb594b3a60760a028d /Lib/collections/__init__.py
parent988fb28431d3a3fc5dc6eb657c8a4baacc04d9ce (diff)
downloadcpython-136c8e07955392676680c8e29ab96017127b6672.zip
cpython-136c8e07955392676680c8e29ab96017127b6672.tar.gz
cpython-136c8e07955392676680c8e29ab96017127b6672.tar.bz2
Code beautification using f-strings (#5618)
Diffstat (limited to 'Lib/collections/__init__.py')
-rw-r--r--Lib/collections/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 9a753db..3109054 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -933,8 +933,7 @@ class ChainMap(_collections_abc.MutableMapping):
@_recursive_repr()
def __repr__(self):
- return '{0.__class__.__name__}({1})'.format(
- self, ', '.join(map(repr, self.maps)))
+ return f'{self.__class__.__name__}({", ".join(map(repr, self.maps))})'
@classmethod
def fromkeys(cls, iterable, *args):