summaryrefslogtreecommitdiff
path: root/astroid/context.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-17 23:19:05 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-17 23:51:41 +0100
commitea96fc4bce94673671958e15d17bbcd75914b3f9 (patch)
tree2c0872b4701f60f2469753f9793f7ac95a0b2475 /astroid/context.py
parent14395e6e5d9d75b6fe1f87a44b77cfe71a538083 (diff)
downloadastroid-git-ea96fc4bce94673671958e15d17bbcd75914b3f9.tar.gz
Move from % syntax to format or f-strings
This is possible with python 3.6
Diffstat (limited to 'astroid/context.py')
-rw-r--r--astroid/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/context.py b/astroid/context.py
index 27d1897f..1caedfd7 100644
--- a/astroid/context.py
+++ b/astroid/context.py
@@ -121,7 +121,7 @@ class InferenceContext:
% (field, pprint.pformat(getattr(self, field), width=80 - len(field)))
for field in self.__slots__
)
- return "%s(%s)" % (type(self).__name__, ",\n ".join(state))
+ return "{}({})".format(type(self).__name__, ",\n ".join(state))
class CallContext: