Make reindent.py happy (convert everything to 4-space indents!).

This commit is contained in:
Fred Drake 2000-10-23 17:22:08 +00:00
parent 2e6d25c5bb
commit 004d5e6880
70 changed files with 1215 additions and 1247 deletions

View File

@ -1,4 +1,3 @@
# Regex test suite and benchmark suite v1.5a2
# Due to the use of r"aw" strings, this file will
# only work with Python 1.5 or higher.
@ -286,4 +285,3 @@ tests = [
('a\>', 'a!', SUCCEED, 'found', 'a'),
('a\>', 'a', SUCCEED, 'found', 'a'),
]

View File

@ -21,4 +21,3 @@ def main():
getattr(al, attr)
main()

View File

@ -185,4 +185,3 @@ def testtype(type, example):
main()

View File

@ -1,4 +1,3 @@
# Augmented assignment test.
x = 2
@ -229,4 +228,3 @@ x >>= 1
x << 1
1 << x
x <<= 1

View File

@ -216,4 +216,3 @@ testme = ExtraTests()
testme.spam
testme.eggs = "spam, spam, spam and ham"
del testme.cardinal

View File

@ -1,4 +1,3 @@
# Simple test suite for Cookie.py
import Cookie
@ -37,4 +36,3 @@ C.load('Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"')
assert C['Customer'].value == 'WILE_E_COYOTE'
assert C['Customer']['version'] == '1'
assert C['Customer']['path'] == '/acme'

View File

@ -46,4 +46,3 @@ if errors:
print str(errors) + " errors."
else:
print "No errors. Thank your lucky stars."

View File

@ -2,7 +2,7 @@ import os
import base64
import gettext
def test_api_1(localedir, mofile):
print 'test api 1'
@ -56,7 +56,7 @@ gettext message catalog library.''')
print _('mullusk')
def test_api_2(localedir, mofile):
print 'test api 2'
@ -104,7 +104,7 @@ gettext message catalog library.''')
return gettext.dgettext('gettext')
GNU_MO_DATA = '''\
3hIElQAAAAAFAAAAHAAAAEQAAAAHAAAAbAAAAAAAAACIAAAAFQAAAIkAAAChAAAAnwAAAAcAAABB
AQAACwAAAEkBAAAbAQAAVQEAABYAAABxAgAAoQAAAIgCAAAFAAAAKgMAAAkAAAAwAwAAAQAAAAQA
@ -123,7 +123,7 @@ bCBjZWJpdnF2YXQgbmEgdmFncmVzbnByIGdiIGd1ciBUQUgKdHJnZ3JrZyB6cmZmbnRyIHBuZ255
YnQgeXZvZW5lbC4AYmFjb24Ad2luayB3aW5rAA==
'''
LOCALEDIR = os.path.join('xx', 'LC_MESSAGES')
MOFILE = os.path.join(LOCALEDIR, 'gettext.mo')
@ -147,7 +147,7 @@ finally:
pass
# For reference, here's the .po file used to created the .mo data above.
'''

View File

@ -1,4 +1,3 @@
import sys, os
import gzip, tempfile

View File

@ -21,6 +21,3 @@ same_hash(int(1), long(1), float(1), complex(1))
same_hash(long(1.23e300), float(1.23e300))
same_hash(float(0.5), complex(0.5, 0.0))

View File

@ -257,4 +257,3 @@ test_division()
test_bitop_identities()
test_format()
test_misc()

View File

@ -1,4 +1,3 @@
import mmap
import string, os, re, sys

View File

@ -48,4 +48,3 @@ if errors:
print str(errors) + " errors."
else:
print "No errors. Thank your lucky stars."

View File

@ -19,4 +19,3 @@ if not os.isatty(slave):
os.write(slave, 'Ping!')
print os.read(master, 1024)

View File

@ -39,4 +39,3 @@ if errors:
print str(errors) + " errors."
else:
print "No errors. Thank your lucky stars."

View File

@ -88,4 +88,3 @@ else:
os.close(master_fd)
# pty.fork() passed.

View File

@ -1,4 +1,3 @@
# regression test for SAX 2.0
# $Id$

View File

@ -60,4 +60,3 @@ def test():
p.close()
test()

View File

@ -35,4 +35,3 @@ string_tests.run_method_tests(test)
string.whitespace
string.lowercase
string.uppercase

View File

@ -7,4 +7,3 @@ file = open(findfile('tokenize_tests.py'))
tokenize.tokenize(file.readline)
if verbose:
print 'finished'

View File

@ -79,4 +79,3 @@ except UnicodeError:
else:
raise AssertionError, "failed to raise an exception for a missing opening brace."
print "done."

View File

@ -515,4 +515,3 @@ assert (u"abc" "def") == u"abcdef"
assert (u"abc" u"def" "ghi") == u"abcdefghi"
assert ("abc" "def" u"ghi") == u"abcdefghi"
print 'done.'

View File

@ -28,5 +28,3 @@ out2_2 = "abc?def"
assert urllib.quote(in2) == out2_1, "urllib.quote problem"
assert urllib.quote(in2, '?') == out2_2, "urllib.quote problem"

View File

@ -144,4 +144,3 @@ if remote_name is not None:
else:
print "Remote registry calls can be tested using",
print "'test_winreg.py --remote \\\\machine_name'"

View File

@ -4,4 +4,3 @@ import winsound
for i in range(100, 2000, 100):
winsound.Beep(i, 75)
print "Hopefully you heard some sounds increasing in frequency!"

View File

@ -23,4 +23,3 @@ finally:
os.unlink(srcname)
if os.path.isfile(zipname):
os.unlink(zipname)

View File

@ -158,4 +158,3 @@ LAERTES
Farewell.
"""