summaryrefslogtreecommitdiff
path: root/tests/basics/string_repr.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_repr.py')
-rw-r--r--tests/basics/string_repr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/string_repr.py b/tests/basics/string_repr.py
index 2a3ef2527..b4842e147 100644
--- a/tests/basics/string_repr.py
+++ b/tests/basics/string_repr.py
@@ -1,4 +1,4 @@
# anything above 0xa0 is printed as Unicode by CPython
# the abobe is CPython implementation detail, stick to ASCII
for c in range(0x80):
- print("0x%02x: %s" % (c, repr(chr(c))))
+ print("0x{:02x}: {}".format(c, repr(chr(c))))