mirror of https://github.com/python/cpython.git
Changed to use the fact that str(long) doesn't produce a trailing L
Reindented
This commit is contained in:
parent
754ba589b7
commit
38e083bcc9
|
@ -25,8 +25,8 @@ def main():
|
||||||
|
|
||||||
def output(d):
|
def output(d):
|
||||||
# Use write() to avoid spaces between the digits
|
# Use write() to avoid spaces between the digits
|
||||||
# Use int(d) to avoid a trailing L after each digit
|
# Use str() to avoid the 'L'
|
||||||
sys.stdout.write(`int(d)`)
|
sys.stdout.write(str(d))
|
||||||
# Flush so the output is seen immediately
|
# Flush so the output is seen immediately
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue