summaryrefslogtreecommitdiff
path: root/events.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-03-26 11:20:38 +0100
committerAnthon van der Neut <anthon@mnt.org>2021-03-26 11:20:38 +0100
commit09f8576ae990234daebf51cca48b52d564f2c2d2 (patch)
treee08953ec5547d9ed05373a3134c3557f6ebf11c6 /events.py
parente8719cd39655d98cf2bde1be15366cca7a58fd89 (diff)
downloadruamel.yaml-09f8576ae990234daebf51cca48b52d564f2c2d2.tar.gz
remove support for 2.7, prepare for f-strings0.17.0
Diffstat (limited to 'events.py')
-rw-r--r--events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/events.py b/events.py
index 693519d..0e44d8d 100644
--- a/events.py
+++ b/events.py
@@ -33,12 +33,12 @@ class Event(object):
if hasattr(self, key)
]
arguments = ', '.join(
- [_F('{key!s}={attr!r})', key=key, attr=getattr(self, key)) for key in attributes]
+ [_F('{key!s}={attr!r}', key=key, attr=getattr(self, key)) for key in attributes]
)
if self.comment not in [None, CommentCheck]:
arguments += ', comment={!r}'.format(self.comment)
return _F(
- '{self_class_name!s}{}arguments!s}',
+ '{self_class_name!s}{arguments!s}',
self_class_name=self.__class__.__name__,
arguments=arguments,
)