Commit 26df684f authored by GUILLEVIC Aurore's avatar GUILLEVIC Aurore

hexadecimal printing format is {:=#x}.format(number), to put a space for positive numbers, use {:=

parent e0c4b808
......@@ -41,7 +41,8 @@ def phex(t):
if abs(t) < 10:
return str(t)
else:
return "%s0x%s" % ("-" if t < 0 else "", abs(t).hex())
#return "%s0x%s" % ("-" if t < 0 else "", abs(t).hex())
return "{:=#x}".format(t)
class sequence_with_stateful_iterators(object):
def __init__(self, S):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment