Whitespace normalization.

This commit is contained in:
Tim Peters 2005-01-07 16:01:32 +00:00
parent e4f5600e5c
commit 5a9fb3c415
9 changed files with 44 additions and 47 deletions

View file

@ -926,7 +926,7 @@ class PimpPackage_installer(PimpPackage):
if '%' in installcmd: if '%' in installcmd:
installcmd = installcmd % self.archiveFilename installcmd = installcmd % self.archiveFilename
else: else:
installcmd = 'open \"%s\"' % self.archiveFilename installcmd = 'open \"%s\"' % self.archiveFilename
if _cmd(output, "/tmp", installcmd): if _cmd(output, "/tmp", installcmd):
return '%s: install command failed (use verbose for details)' % self.fullname() return '%s: install command failed (use verbose for details)' % self.fullname()
return '%s: downloaded and opened. Install manually and restart Package Manager' % self.archiveFilename return '%s: downloaded and opened. Install manually and restart Package Manager' % self.archiveFilename

View file

@ -1,25 +1,25 @@
# line 1 # line 1
def wrap(foo=None): def wrap(foo=None):
def wrapper(func): def wrapper(func):
return func return func
return wrapper return wrapper
# line 7 # line 7
def replace(func): def replace(func):
def insteadfunc(): def insteadfunc():
print 'hello' print 'hello'
return insteadfunc return insteadfunc
# line 13 # line 13
@wrap() @wrap()
@wrap(wrap) @wrap(wrap)
def wrapped(): def wrapped():
pass pass
# line 19 # line 19
@replace @replace
def gone(): def gone():
pass pass
# line 24 # line 24
oll = lambda m: m oll = lambda m: m

View file

@ -172,8 +172,8 @@ class TestRetrievingSourceCode(GetSourceBase):
self.assertSourceEqual(mod.StupidGit, 21, 46) self.assertSourceEqual(mod.StupidGit, 21, 46)
def test_getsourcefile(self): def test_getsourcefile(self):
self.assertEqual(inspect.getsourcefile(mod.spam), modfile) self.assertEqual(inspect.getsourcefile(mod.spam), modfile)
self.assertEqual(inspect.getsourcefile(git.abuse), modfile) self.assertEqual(inspect.getsourcefile(git.abuse), modfile)
def test_getfile(self): def test_getfile(self):
self.assertEqual(inspect.getfile(mod.StupidGit), mod.__file__) self.assertEqual(inspect.getfile(mod.StupidGit), mod.__file__)
@ -418,4 +418,3 @@ def test_main():
if __name__ == "__main__": if __name__ == "__main__":
test_main() test_main()

View file

@ -116,4 +116,3 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -71,4 +71,3 @@ if __name__ == '__main__':
print 'locale_alias = {' print 'locale_alias = {'
pprint(data) pprint(data)
print '}' print '}'

View file

@ -977,7 +977,7 @@ def add_files(db):
lib.add_file('python%s%s.lib' % (major, minor)) lib.add_file('python%s%s.lib' % (major, minor))
# Add the mingw-format library # Add the mingw-format library
if have_mingw: if have_mingw:
lib.add_file('libpython%s%s.a' % (major, minor)) lib.add_file('libpython%s%s.a' % (major, minor))
if have_tcl: if have_tcl:
# Add Tcl/Tk # Add Tcl/Tk
tcldirs = [(root, '../tcltk/lib', 'tcl')] tcldirs = [(root, '../tcltk/lib', 'tcl')]