diff options
author | David Gilman <davidgilman1@gmail.com> | 2021-01-01 16:05:21 -0500 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-16 07:53:15 +0100 |
commit | 1af517b1281f15a14effbb207b4540fb316067b9 (patch) | |
tree | 3f5776b966358c9d7c25a5e13ccec751f243cd59 | |
parent | 0c3c6dc8facf395ada947a5444255e0c6a3d2aaa (diff) | |
download | pylint-git-1af517b1281f15a14effbb207b4540fb316067b9.tar.gz |
Remove Python 3.4 compatibility code from Message
-rw-r--r-- | pylint/message/message.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pylint/message/message.py b/pylint/message/message.py index af1907237..3453f535e 100644 --- a/pylint/message/message.py +++ b/pylint/message/message.py @@ -46,6 +46,4 @@ class Message(_MsgBase): The template format is the one of the format method : cf. https://docs.python.org/2/library/string.html#formatstrings """ - # For some reason, _asdict on derived namedtuples does not work with - # Python 3.4. Needs some investigation. - return template.format(**dict(zip(self._fields, self))) + return template.format(**self._asdict()) |