mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
182b5aca27
commit
3d7d372ce3
13 changed files with 49 additions and 53 deletions
|
@ -11,13 +11,13 @@ def main():
|
|||
nwords = len(words)
|
||||
nrows = (nwords + ncols - 1) / ncols
|
||||
for irow in range(nrows):
|
||||
for icol in range(ncols):
|
||||
i = irow + icol * nrows
|
||||
if 0 <= i < nwords:
|
||||
word = words[i]
|
||||
else:
|
||||
word = ""
|
||||
print "%-*s" % (colwidth, word),
|
||||
print
|
||||
for icol in range(ncols):
|
||||
i = irow + icol * nrows
|
||||
if 0 <= i < nwords:
|
||||
word = words[i]
|
||||
else:
|
||||
word = ""
|
||||
print "%-*s" % (colwidth, word),
|
||||
print
|
||||
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue