diff options
Diffstat (limited to 'Doc/tools/keywords.py')
-rw-r--r-- | Doc/tools/keywords.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tools/keywords.py b/Doc/tools/keywords.py index 6da352a..876987d 100644 --- a/Doc/tools/keywords.py +++ b/Doc/tools/keywords.py @@ -2,11 +2,10 @@ # This Python program sorts and reformats the table of keywords in ref2.tex -import string l = [] try: while 1: - l = l + string.split(raw_input()) + l = l + raw_input().split() except EOFError: pass l.sort() @@ -16,5 +15,5 @@ ncols = 5 nrows = (len(l)+ncols-1)/ncols for i in range(nrows): for j in range(i, len(l), nrows): - print string.ljust(l[j], 10), + print l[j].ljust(10), print |