From: Raymond Hettinger Date: Sun, 11 Feb 2018 16:00:11 +0000 (-0800) Subject: Code beautification using f-strings (#5618) X-Git-Tag: v3.8.0a1~2241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=136c8e07955392676680c8e29ab96017127b6672;p=python Code beautification using f-strings (#5618) --- diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 9a753db71c..3109054e20 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):