Commit 38e083bc authored by Moshe Zadka's avatar Moshe Zadka

Changed to use the fact that str(long) doesn't produce a trailing L

Reindented
parent 754ba589
......@@ -25,8 +25,8 @@ def main():
def output(d):
# Use write() to avoid spaces between the digits
# Use int(d) to avoid a trailing L after each digit
sys.stdout.write(`int(d)`)
# Use str() to avoid the 'L'
sys.stdout.write(str(d))
# Flush so the output is seen immediately
sys.stdout.flush()
......
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