Skip to content

Commit 3d7d372

Browse files
committed
Whitespace normalization, via reindent.py.
1 parent 182b5ac commit 3d7d372

13 files changed

Lines changed: 49 additions & 53 deletions

File tree

‎Doc/ext/setup.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
Extension("noddy3", ["noddy3.c"]),
77
Extension("noddy4", ["noddy4.c"]),
88
])
9-

‎Doc/ext/test.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,3 @@
211211
if __name__ == "__main__":
212212
import doctest, __main__
213213
doctest.testmod(__main__)
214-

‎Doc/lib/caseless.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _match_long_opt (self, opt):
4545
print "ok: got OptionConflictError for -H"
4646
else:
4747
print "not ok: no conflict between -h and -H"
48-
48+
4949
parser.add_option("-f", "--file", dest="file")
5050
#print repr(parser.get_option("-f"))
5151
#print repr(parser.get_option("-F"))
@@ -58,5 +58,3 @@ def _match_long_opt (self, opt):
5858
(options, args) = parser.parse_args(["-F", "bar"])
5959
assert options.file == "bar", options.file
6060
print "ok: case insensitive short options work"
61-
62-

‎Doc/lib/email-dir.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main():
6666

6767
sender = args[0]
6868
recips = args[1:]
69-
69+
7070
# Create the enclosing (outer) message
7171
outer = MIMEMultipart()
7272
outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir)

‎Doc/lib/minidom-example.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def handleSlideshow(slideshow):
3535

3636
def handleSlides(slides):
3737
for slide in slides:
38-
handleSlide(slide)
38+
handleSlide(slide)
3939

4040
def handleSlide(slide):
4141
handleSlideTitle(slide.getElementsByTagName("title")[0])

‎Doc/lib/required_1.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
class OptionParser (optparse.OptionParser):
44

55
def check_required (self, opt):
6-
option = self.get_option(opt)
6+
option = self.get_option(opt)
77

8-
# Assumes the option's 'default' is set to None!
9-
if getattr(self.values, option.dest) is None:
10-
self.error("%s option not supplied" % option)
8+
# Assumes the option's 'default' is set to None!
9+
if getattr(self.values, option.dest) is None:
10+
self.error("%s option not supplied" % option)
1111

1212

1313
parser = OptionParser()

‎Doc/ref/reswords.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ def main():
1111
nwords = len(words)
1212
nrows = (nwords + ncols - 1) / ncols
1313
for irow in range(nrows):
14-
for icol in range(ncols):
15-
i = irow + icol * nrows
16-
if 0 <= i < nwords:
17-
word = words[i]
18-
else:
19-
word = ""
20-
print "%-*s" % (colwidth, word),
21-
print
14+
for icol in range(ncols):
15+
i = irow + icol * nrows
16+
if 0 <= i < nwords:
17+
word = words[i]
18+
else:
19+
word = ""
20+
print "%-*s" % (colwidth, word),
21+
print
2222

2323
main()

‎Doc/tools/custlib.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010

1111
for modname in sys.builtin_module_names:
1212
modules[modname] = modname
13-
13+
1414
for dir in sys.path:
1515
# Look for *.py files
1616
filelist = glob.glob(os.path.join(dir, '*.py'))
17-
for file in filelist:
17+
for file in filelist:
1818
path, file = os.path.split(file)
1919
base, ext = os.path.splitext(file)
2020
modules[base.lower()] = base
2121

2222
# Look for shared library files
23-
filelist = (glob.glob(os.path.join(dir, '*.so')) +
23+
filelist = (glob.glob(os.path.join(dir, '*.so')) +
2424
glob.glob(os.path.join(dir, '*.sl')) +
2525
glob.glob(os.path.join(dir, '*.o')) )
26-
for file in filelist:
26+
for file in filelist:
2727
path, file = os.path.split(file)
2828
base, ext = os.path.splitext(file)
2929
if base[-6:] == 'module':
@@ -54,7 +54,7 @@
5454
# Phase III: write custlib.tex
5555

5656
# Write the boilerplate
57-
# XXX should be fancied up.
57+
# XXX should be fancied up.
5858
print """\documentstyle[twoside,11pt,myformat]{report}
5959
\\title{Python Library Reference}
6060
\\input{boilerplate}
@@ -69,10 +69,10 @@
6969
\\pagebreak
7070
{\\parskip = 0mm \\tableofcontents}
7171
\\pagebreak\\pagenumbering{arabic}"""
72-
73-
for modname in mlist:
72+
73+
for modname in mlist:
7474
print "\\input{lib%s}" % (modname,)
75-
75+
7676
# Write the end
7777
print """\\input{custlib.ind} % Index
7878
\\end{document}"""

‎Doc/tools/keywords.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
l = []
66
try:
7-
while 1:
8-
l = l + raw_input().split()
7+
while 1:
8+
l = l + raw_input().split()
99
except EOFError:
10-
pass
10+
pass
1111
l.sort()
1212
for x in l[:]:
13-
while l.count(x) > 1: l.remove(x)
13+
while l.count(x) > 1: l.remove(x)
1414
ncols = 5
1515
nrows = (len(l)+ncols-1)/ncols
1616
for i in range(nrows):
17-
for j in range(i, len(l), nrows):
18-
print l[j].ljust(10),
19-
print
17+
for j in range(i, len(l), nrows):
18+
print l[j].ljust(10),
19+
print

‎Doc/tools/prechm.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ def openfile(file):
438438
return p
439439

440440
def usage():
441-
print usage_mode
442-
sys.exit(0)
441+
print usage_mode
442+
sys.exit(0)
443443

444444
def do_it(args = None):
445445
if not args:

0 commit comments

Comments
 (0)