Whitespace normalization, via reindent.py.

This commit is contained in:
Tim Peters 2004-07-18 06:16:08 +00:00
parent e6ddc8b20b
commit 182b5aca27
453 changed files with 31318 additions and 31452 deletions

View file

@ -194,4 +194,3 @@ if __name__ == '__main__':
root = Tix.Tk()
RunSample(root)
root.mainloop()

View file

@ -129,4 +129,3 @@ if __name__== '__main__' :
for line in traceback.format_exception(t,v,tb):
text = text + line + '\n'
d = tkMessageBox.showerror ( 'Tix Demo Error', text)

View file

@ -115,4 +115,3 @@ class DemoDirTree:
if __name__== '__main__' :
root=Tix.Tk()
RunSample(root)

View file

@ -129,4 +129,3 @@ class DemoSHList:
if __name__== '__main__' :
root=Tix.Tk()
RunSample(root)

View file

@ -166,4 +166,3 @@ class DemoSHList:
if __name__== '__main__' :
root=Tix.Tk()
RunSample(root)

View file

@ -1001,4 +1001,3 @@ def ReadFile(w, fname):
if __name__ == '__main__':
root = Tix.Tk()
RunMain(root)

View file

@ -96,4 +96,3 @@ if __name__ == '__main__':
kill.winfo_toplevel().title('Tkinter Process Killer')
kill.winfo_toplevel().minsize(1, 1)
kill.mainloop()

View file

@ -60,6 +60,3 @@ class Test(Frame):
test = Test()
test.mainloop()

View file

@ -76,6 +76,3 @@ class Test(Frame):
test = Test()
test.mainloop()

View file

@ -22,4 +22,3 @@ class App(Frame):
root = App()
root.master.title("Foo")
root.mainloop()

View file

@ -44,4 +44,3 @@ class App(Frame):
root = App()
root.master.title("Foo")
root.mainloop()

View file

@ -242,9 +242,3 @@ root.title('menu demo')
root.iconname('menu demo')
root.mainloop()

View file

@ -110,9 +110,3 @@ root.title('menu demo')
root.iconname('packer')
root.mainloop()

View file

@ -39,4 +39,3 @@ app = createWidgets(root)
root.geometry("400x400")
root.maxsize(1000, 1000)
root.mainloop()

View file

@ -37,4 +37,3 @@ app = createWidgets(root)
root.geometry("400x400")
root.maxsize(1000, 1000)
root.mainloop()

View file

@ -59,6 +59,3 @@ class Test(Frame):
test = Test()
test.mainloop()

View file

@ -26,4 +26,3 @@ def createWidgets(top):
root = Tk()
createWidgets(root)
root.mainloop()

View file

@ -104,4 +104,3 @@ else:
if isize!=length: print 'Incorrect length of data produced'
input.close() ; output.close()

View file

@ -33,4 +33,3 @@ decomp=decomp+decompressor.flush()
print 'Progressive compression (level 9):'
print ' Original:', len(s), 'Compressed:', len(comptext),
print 'Uncompressed:', len(decomp)

View file

@ -51,4 +51,3 @@ try:
has_key
except NameError:
from has_key import has_key

View file

@ -190,5 +190,3 @@ if __name__ == '__main__':
finally:
_curses.endwin()
for i in L: print i

View file

@ -6,4 +6,3 @@ Module for using panels with curses.
__revision__ = "$Id$"
from _curses_panel import *

View file

@ -286,4 +286,3 @@ Your selection [default 1]: ''',
if self.show_response:
print '-'*75, data, '-'*75
return result

View file

@ -239,4 +239,3 @@ def run_setup (script_name, script_args=None, stop_after="run"):
return _setup_distribution
# run_setup ()

View file

@ -7,4 +7,3 @@ __revision__ = "$Id$"
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
DEBUG = os.environ.get('DISTUTILS_DEBUG')

View file

@ -225,4 +225,3 @@ def ensure_relative (path):
if path[0:1] == os.sep:
path = drive + path[1:]
return path

View file

@ -576,4 +576,3 @@ class MSVCCompiler (CCompiler) :
p = self.get_msvc_paths(name)
if p:
os.environ[name] = string.join(p, ';')

View file

@ -213,4 +213,3 @@ if __name__ == "__main__":
saveasfilename=asksaveasfilename()
print "saveas", saveasfilename.encode(enc)

View file

@ -942,4 +942,3 @@ def IN6_IS_ADDR_MC_SITELOCAL(a): return \
def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
def IN6_IS_ADDR_MC_GLOBAL(a): return \

View file

@ -140,4 +140,3 @@ _SYS_SYSMACROS_H = 1
def major(dev): return ( (( (dev) >> 8) & 0xff))
def minor(dev): return ( ((dev) & 0xff))

View file

@ -613,4 +613,3 @@ def IN6_IS_ADDR_MC_SITELOCAL(a): return \
def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
def IN6_IS_ADDR_MC_GLOBAL(a): return \

View file

@ -168,4 +168,3 @@ def minor(dev): return ((dev).__val[1] & 0xff)
def major(dev): return (((dev).__val[0] >> 8) & 0xff)
def minor(dev): return ((dev).__val[0] & 0xff)

View file

@ -54,4 +54,3 @@ def GetControlData(control, part, selector):
if type(data) == type(()) and len(data) == 1:
data = data[0]
return data

View file

@ -3,4 +3,3 @@ try:
_ = AddFilePreview
except:
raise ImportError, "Old (2.3) _Qt.so module loaded in stead of new (2.4) _Qt.so"

View file

@ -836,4 +836,3 @@ if __name__ == '__main__':
test()
except KeyboardInterrupt:
Message("Operation Canceled.")

View file

@ -212,4 +212,3 @@ def test():
pm.fromImage( Image.open(path) )
pm.blit(20,20)
return pm

View file

@ -566,4 +566,3 @@ exec template % ("Window", 'cwin')
exec template % ("Document", 'docu')
exec template % ("File", 'file')
exec template % ("InsertionPoint", 'cins')

View file

@ -53,4 +53,3 @@ if INCLUDEDIR[-1] != os.sep:
INCLUDEDIR = INCLUDEDIR + os.sep
if TOOLBOXDIR[-1] != os.sep:
TOOLBOXDIR = TOOLBOXDIR + os.sep

View file

@ -417,4 +417,3 @@ def writepycfile(codeobject, cfile):
fc.seek(0, 0)
fc.write(MAGIC)
fc.close()

View file

@ -181,4 +181,3 @@ class FragmentDescriptor:
outfile.write(infile.read(l))
l = 0
infile.close()

View file

@ -829,4 +829,3 @@ if __name__ == '__main__':
_test()
_test2()
_test3()

View file

@ -266,4 +266,3 @@ def _test():
if __name__ == '__main__':
_test()

View file

@ -187,4 +187,3 @@ class CodeWarrior(CodeWarrior_suite_Events,
_signature = 'CWIE'
_moduleName = 'CodeWarrior'

View file

@ -469,4 +469,3 @@ class StdSuites(Text_Suite_Events,
_signature = 'ascr'
_moduleName = 'StdSuites'

View file

@ -25,4 +25,3 @@ from builtin_Suite import *
class _builtinSuites(builtin_Suite_Events,
aetools.TalkTo):
_signature = 'ascr'

View file

@ -1136,5 +1136,3 @@ if __name__ != 'pimp_update':
if __name__ == '__main__':
main()

View file

@ -289,4 +289,3 @@ def _test():
if __name__ == '__main__':
_test()
sys.exit(1)

View file

@ -54,4 +54,3 @@ IPCTL_DIRECTEDBCAST = 6
IPCTL_ALLOWSRCRT = 7
IPCTL_MAXID = 8
def in_nullhost(x): return ((x).s_addr == INADDR_ANY)

View file

@ -311,4 +311,3 @@ FD_SETSIZE = 1024
_NBBY = 8
NBBY = _NBBY
def FD_ZERO(p): return bzero((p), sizeof (*(p)))

View file

@ -33,4 +33,3 @@ class Disk_Copy(Standard_Suite_Events,
Utility_Events_Events,
aetools.TalkTo):
_signature = 'ddsk'

View file

@ -33,5 +33,3 @@ def main():
if __name__ == '__main__':
main()

View file

@ -54,4 +54,3 @@ def dnslookup(str):
return value
main()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -43,4 +43,3 @@ for f in functions: module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -131,4 +131,3 @@ for f in methods: object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -663,4 +663,3 @@ module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -190,4 +190,3 @@ for f in CGContextRef_methods:
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -123,4 +123,3 @@ for f in ci_methods: ci_object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -7,4 +7,3 @@ functions.append(f)
f = Function(UInt32, 'TickCount',
)
functions.append(f)

View file

@ -90,4 +90,3 @@ module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -849,4 +849,3 @@ for f in fsref_methods: fsrefobject.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -79,4 +79,3 @@ for f in functions: module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -54,4 +54,3 @@ for f in functions: module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -76,4 +76,3 @@ for f in functions: module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -88,4 +88,3 @@ for f in functions: module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -99,4 +99,3 @@ for f in functions: module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -253,4 +253,3 @@ for f in methods: object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -121,4 +121,3 @@ f = Function(OSStatus, 'RemoveMenuCommandProperty',
(OSType, 'inPropertyTag', InMode),
)
functions.append(f)

View file

@ -200,4 +200,3 @@ module.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -103,4 +103,3 @@ for f in methods: object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -156,4 +156,3 @@ f = Function(void, 'DrawText',
(short, 'byteCount', InMode),
)
functions.append(f)

View file

@ -64,4 +64,3 @@ class MyScanner(Scanner):
if __name__ == "__main__":
main()

View file

@ -377,4 +377,3 @@ for f in Movie_methods: Movie_object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -73,4 +73,3 @@ for f in methods: object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -214,4 +214,3 @@ for f in methods: object.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -442,4 +442,3 @@ for f in methods2: object2.add(f)
# generate output (open the output file as late as possible)
SetOutputFileName(OUTPUTFILE)
module.generate()

View file

@ -67,5 +67,3 @@ return _res;
f = ManualGenerator("AutoDispose", AutoDispose_body)
f.docstring = lambda: "(int)->int. Automatically DisposeHandle the object on Python object cleanup"
methods.append(f)

View file

@ -128,4 +128,3 @@ class MyScanner(Scanner):
if __name__ == "__main__":
main()

View file

@ -76,4 +76,3 @@ class HelpIndexingTool(Standard_Suite_Events,
_signature = 'hiti'
_moduleName = 'HelpIndexingTool'

View file

@ -67,4 +67,3 @@ def main():
if __name__ == "__main__":
main()

View file

@ -38,4 +38,3 @@ for name in files:
# add W resources
wresref = Res.FSpOpenResFile(os.path.join(ide_home, "Widgets.rsrc"), 1)
buildtools.copyres(wresref, targetref, [], 0)

View file

@ -614,4 +614,3 @@ def tuple_caselesssort(items):
else:
tupledlist.sort()
return map(lambda (low, tuple): tuple, tupledlist)

View file

@ -38,4 +38,3 @@ def Message(text):
if not text:
text = '<Alert text not specified>'
EasyDialogs.Message(text)

View file

@ -479,4 +479,3 @@ class Menu(FrameWork.Menu):
elif hasattr(self.bar.parent, "domenu_" + callback):
menuhandler = getattr(self.bar.parent, "domenu_" + callback)
return menuhandler

View file

@ -430,4 +430,3 @@ def _scalebarvalue(absmin, absmax, curmin, curmax):
return 32767
perc = float(curmin-absmin) / float((absmax - absmin) - (curmax - curmin))
return int(perc*32767)

View file

@ -579,4 +579,3 @@ class MultiList(List):
else:
set_sel(0, (j, i))
#self._list.LAutoScroll()

View file

@ -111,4 +111,3 @@ class Movie(W.Widget):
if self.movie:
self.movie.UpdateMovie()
self.movie.MoviesTask(0)

View file

@ -185,4 +185,3 @@ class TraceBack:
self.w.editbutton.enable(havefile)
self.w.browselocalsbutton.enable(havefile)
self.w.setdefaultbutton(havefile and self.w.editbutton or self.w.postmortembutton)

View file

@ -40,4 +40,3 @@ def findfreezedirectives(program):
else:
print '** Unknown directive', line
return extra_modules, exclude_modules, optional_modules, extra_path

View file

@ -34,4 +34,3 @@ def warnings(module_dict):
problems = problems + 1
print 'Warning: %s not included: %s %s'%(name, module.gettype(), module)
return problems

View file

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

View file

@ -50,4 +50,3 @@ gensuitemodule.processfile(TERMINAL,
output=os.path.join(DSTDIR, 'Terminal'),
basepkgname='StdSuites',
edit_modnames=[], verbose=verbose)

View file

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

View file

@ -34,4 +34,3 @@ def walker(dummy, top, names):
if __name__ == '__main__':
main()

Some files were not shown because too many files have changed in this diff Show more