Skip to content

Commit 136c8e0

Browse files
authored
Code beautification using f-strings (#5618)
1 parent 988fb28 commit 136c8e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/collections/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,7 @@ def __bool__(self):
933933

934934
@_recursive_repr()
935935
def __repr__(self):
936-
return '{0.__class__.__name__}({1})'.format(
937-
self, ', '.join(map(repr, self.maps)))
936+
return f'{self.__class__.__name__}({", ".join(map(repr, self.maps))})'
938937

939938
@classmethod
940939
def fromkeys(cls, iterable, *args):

0 commit comments

Comments
 (0)