From 5eef82944e15ae3360b0601ff956982678ba4f51 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 11 Feb 2018 02:26:12 -0800 Subject: [PATCH] Code beautification using f-strings --- Lib/collections/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 9a753db71caeae..3109054e20c148 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -933,8 +933,7 @@ def __bool__(self): @_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):