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

Reindented
This commit is contained in:
Moshe Zadka 2001-02-20 16:13:43 +00:00
parent 754ba589b7
commit 38e083bcc9

View file

@ -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()