diff options
author | Anthon van der Neut <anthon@mnt.org> | 2021-03-26 11:20:38 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2021-03-26 11:20:38 +0100 |
commit | 09f8576ae990234daebf51cca48b52d564f2c2d2 (patch) | |
tree | e08953ec5547d9ed05373a3134c3557f6ebf11c6 /events.py | |
parent | e8719cd39655d98cf2bde1be15366cca7a58fd89 (diff) | |
download | ruamel.yaml-09f8576ae990234daebf51cca48b52d564f2c2d2.tar.gz |
remove support for 2.7, prepare for f-strings0.17.0
Diffstat (limited to 'events.py')
-rw-r--r-- | events.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, ) |