mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Changed to use the fact that str(long) doesn't produce a trailing L
Reindented
This commit is contained in:
parent
754ba589b7
commit
38e083bcc9
1 changed files with 16 additions and 16 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue