diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-18 19:18:06 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-29 22:22:37 +1100 |
commit | 709136e844f93eb7b9ea8c14e9daa5da8e8293d3 (patch) | |
tree | d2b585ef47209d414dccbe4ab5383979370baf7d /tests/basics/class_notimpl.py | |
parent | 4847460232764a116b731da077074818e316fb55 (diff) |
tests/basics: Use str.format instead of % for formatting messages.
Only use % formatting when testing % itself, because only str.format is
guaranteed to be available on any port.
Diffstat (limited to 'tests/basics/class_notimpl.py')
-rw-r--r-- | tests/basics/class_notimpl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/class_notimpl.py b/tests/basics/class_notimpl.py index 7fd8166f9..308075f92 100644 --- a/tests/basics/class_notimpl.py +++ b/tests/basics/class_notimpl.py @@ -11,7 +11,7 @@ class C: self.value = value def __str__(self): - return "C(%s)" % self.value + return "C({})".format(self.value) def __add__(self, rhs): print(self, '+', rhs) |