mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -194,4 +194,3 @@ if __name__ == '__main__':
|
|||
root = Tix.Tk()
|
||||
RunSample(root)
|
||||
root.mainloop()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -115,4 +115,3 @@ class DemoDirTree:
|
|||
if __name__== '__main__' :
|
||||
root=Tix.Tk()
|
||||
RunSample(root)
|
||||
|
||||
|
|
|
@ -129,4 +129,3 @@ class DemoSHList:
|
|||
if __name__== '__main__' :
|
||||
root=Tix.Tk()
|
||||
RunSample(root)
|
||||
|
||||
|
|
|
@ -166,4 +166,3 @@ class DemoSHList:
|
|||
if __name__== '__main__' :
|
||||
root=Tix.Tk()
|
||||
RunSample(root)
|
||||
|
||||
|
|
|
@ -1001,4 +1001,3 @@ def ReadFile(w, fname):
|
|||
if __name__ == '__main__':
|
||||
root = Tix.Tk()
|
||||
RunMain(root)
|
||||
|
||||
|
|
|
@ -96,4 +96,3 @@ if __name__ == '__main__':
|
|||
kill.winfo_toplevel().title('Tkinter Process Killer')
|
||||
kill.winfo_toplevel().minsize(1, 1)
|
||||
kill.mainloop()
|
||||
|
||||
|
|
|
@ -60,6 +60,3 @@ class Test(Frame):
|
|||
|
||||
test = Test()
|
||||
test.mainloop()
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -76,6 +76,3 @@ class Test(Frame):
|
|||
|
||||
test = Test()
|
||||
test.mainloop()
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -22,4 +22,3 @@ class App(Frame):
|
|||
root = App()
|
||||
root.master.title("Foo")
|
||||
root.mainloop()
|
||||
|
||||
|
|
|
@ -44,4 +44,3 @@ class App(Frame):
|
|||
root = App()
|
||||
root.master.title("Foo")
|
||||
root.mainloop()
|
||||
|
||||
|
|
|
@ -242,9 +242,3 @@ root.title('menu demo')
|
|||
root.iconname('menu demo')
|
||||
|
||||
root.mainloop()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -110,9 +110,3 @@ root.title('menu demo')
|
|||
root.iconname('packer')
|
||||
|
||||
root.mainloop()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -39,4 +39,3 @@ app = createWidgets(root)
|
|||
root.geometry("400x400")
|
||||
root.maxsize(1000, 1000)
|
||||
root.mainloop()
|
||||
|
||||
|
|
|
@ -37,4 +37,3 @@ app = createWidgets(root)
|
|||
root.geometry("400x400")
|
||||
root.maxsize(1000, 1000)
|
||||
root.mainloop()
|
||||
|
||||
|
|
|
@ -59,6 +59,3 @@ class Test(Frame):
|
|||
|
||||
test = Test()
|
||||
test.mainloop()
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -26,4 +26,3 @@ def createWidgets(top):
|
|||
root = Tk()
|
||||
createWidgets(root)
|
||||
root.mainloop()
|
||||
|
||||
|
|
|
@ -104,4 +104,3 @@ else:
|
|||
if isize!=length: print 'Incorrect length of data produced'
|
||||
|
||||
input.close() ; output.close()
|
||||
|
||||
|
|
|
@ -33,4 +33,3 @@ decomp=decomp+decompressor.flush()
|
|||
print 'Progressive compression (level 9):'
|
||||
print ' Original:', len(s), 'Compressed:', len(comptext),
|
||||
print 'Uncompressed:', len(decomp)
|
||||
|
||||
|
|
|
@ -51,4 +51,3 @@ try:
|
|||
has_key
|
||||
except NameError:
|
||||
from has_key import has_key
|
||||
|
||||
|
|
|
@ -190,5 +190,3 @@ if __name__ == '__main__':
|
|||
finally:
|
||||
_curses.endwin()
|
||||
for i in L: print i
|
||||
|
||||
|
||||
|
|
|
@ -6,4 +6,3 @@ Module for using panels with curses.
|
|||
__revision__ = "$Id$"
|
||||
|
||||
from _curses_panel import *
|
||||
|
||||
|
|
|
@ -286,4 +286,3 @@ Your selection [default 1]: ''',
|
|||
if self.show_response:
|
||||
print '-'*75, data, '-'*75
|
||||
return result
|
||||
|
||||
|
|
|
@ -239,4 +239,3 @@ def run_setup (script_name, script_args=None, stop_after="run"):
|
|||
return _setup_distribution
|
||||
|
||||
# run_setup ()
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
|
@ -225,4 +225,3 @@ def ensure_relative (path):
|
|||
if path[0:1] == os.sep:
|
||||
path = drive + path[1:]
|
||||
return path
|
||||
|
||||
|
|
|
@ -576,4 +576,3 @@ class MSVCCompiler (CCompiler) :
|
|||
p = self.get_msvc_paths(name)
|
||||
if p:
|
||||
os.environ[name] = string.join(p, ';')
|
||||
|
||||
|
|
|
@ -213,4 +213,3 @@ if __name__ == "__main__":
|
|||
|
||||
saveasfilename=asksaveasfilename()
|
||||
print "saveas", saveasfilename.encode(enc)
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
||||
|
|
|
@ -140,4 +140,3 @@ _SYS_SYSMACROS_H = 1
|
|||
def major(dev): return ( (( (dev) >> 8) & 0xff))
|
||||
|
||||
def minor(dev): return ( ((dev) & 0xff))
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -54,4 +54,3 @@ def GetControlData(control, part, selector):
|
|||
if type(data) == type(()) and len(data) == 1:
|
||||
data = data[0]
|
||||
return data
|
||||
|
||||
|
|
|
@ -3,4 +3,3 @@ try:
|
|||
_ = AddFilePreview
|
||||
except:
|
||||
raise ImportError, "Old (2.3) _Qt.so module loaded in stead of new (2.4) _Qt.so"
|
||||
|
|
@ -836,4 +836,3 @@ if __name__ == '__main__':
|
|||
test()
|
||||
except KeyboardInterrupt:
|
||||
Message("Operation Canceled.")
|
||||
|
||||
|
|
|
@ -212,4 +212,3 @@ def test():
|
|||
pm.fromImage( Image.open(path) )
|
||||
pm.blit(20,20)
|
||||
return pm
|
||||
|
||||
|
|
|
@ -566,4 +566,3 @@ exec template % ("Window", 'cwin')
|
|||
exec template % ("Document", 'docu')
|
||||
exec template % ("File", 'file')
|
||||
exec template % ("InsertionPoint", 'cins')
|
||||
|
||||
|
|
|
@ -53,4 +53,3 @@ if INCLUDEDIR[-1] != os.sep:
|
|||
INCLUDEDIR = INCLUDEDIR + os.sep
|
||||
if TOOLBOXDIR[-1] != os.sep:
|
||||
TOOLBOXDIR = TOOLBOXDIR + os.sep
|
||||
|
||||
|
|
|
@ -417,4 +417,3 @@ def writepycfile(codeobject, cfile):
|
|||
fc.seek(0, 0)
|
||||
fc.write(MAGIC)
|
||||
fc.close()
|
||||
|
||||
|
|
|
@ -181,4 +181,3 @@ class FragmentDescriptor:
|
|||
outfile.write(infile.read(l))
|
||||
l = 0
|
||||
infile.close()
|
||||
|
||||
|
|
|
@ -829,4 +829,3 @@ if __name__ == '__main__':
|
|||
_test()
|
||||
_test2()
|
||||
_test3()
|
||||
|
||||
|
|
|
@ -266,4 +266,3 @@ def _test():
|
|||
|
||||
if __name__ == '__main__':
|
||||
_test()
|
||||
|
||||
|
|
|
@ -187,4 +187,3 @@ class CodeWarrior(CodeWarrior_suite_Events,
|
|||
_signature = 'CWIE'
|
||||
|
||||
_moduleName = 'CodeWarrior'
|
||||
|
||||
|
|
|
@ -469,4 +469,3 @@ class StdSuites(Text_Suite_Events,
|
|||
_signature = 'ascr'
|
||||
|
||||
_moduleName = 'StdSuites'
|
||||
|
||||
|
|
|
@ -25,4 +25,3 @@ from builtin_Suite import *
|
|||
class _builtinSuites(builtin_Suite_Events,
|
||||
aetools.TalkTo):
|
||||
_signature = 'ascr'
|
||||
|
||||
|
|
|
@ -1136,5 +1136,3 @@ if __name__ != 'pimp_update':
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
|
|
@ -289,4 +289,3 @@ def _test():
|
|||
if __name__ == '__main__':
|
||||
_test()
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
@ -54,4 +54,3 @@ IPCTL_DIRECTEDBCAST = 6
|
|||
IPCTL_ALLOWSRCRT = 7
|
||||
IPCTL_MAXID = 8
|
||||
def in_nullhost(x): return ((x).s_addr == INADDR_ANY)
|
||||
|
||||
|
|
|
@ -311,4 +311,3 @@ FD_SETSIZE = 1024
|
|||
_NBBY = 8
|
||||
NBBY = _NBBY
|
||||
def FD_ZERO(p): return bzero((p), sizeof (*(p)))
|
||||
|
||||
|
|
|
@ -33,4 +33,3 @@ class Disk_Copy(Standard_Suite_Events,
|
|||
Utility_Events_Events,
|
||||
aetools.TalkTo):
|
||||
_signature = 'ddsk'
|
||||
|
||||
|
|
|
@ -33,5 +33,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
|
|
@ -54,4 +54,3 @@ def dnslookup(str):
|
|||
return value
|
||||
|
||||
main()
|
||||
|
||||
|
|
|
@ -372,4 +372,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -68,4 +68,3 @@ def loadMovie(theFile):
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -90,4 +90,3 @@ def loadMovie(theFile):
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -357,4 +357,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -828,4 +828,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -632,4 +632,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -424,4 +424,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -663,4 +663,3 @@ module.add(f)
|
|||
# generate output (open the output file as late as possible)
|
||||
SetOutputFileName(OUTPUTFILE)
|
||||
module.generate()
|
||||
|
||||
|
|
|
@ -190,4 +190,3 @@ for f in CGContextRef_methods:
|
|||
# generate output (open the output file as late as possible)
|
||||
SetOutputFileName(OUTPUTFILE)
|
||||
module.generate()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -7,4 +7,3 @@ functions.append(f)
|
|||
f = Function(UInt32, 'TickCount',
|
||||
)
|
||||
functions.append(f)
|
||||
|
||||
|
|
|
@ -90,4 +90,3 @@ module.add(f)
|
|||
# generate output (open the output file as late as possible)
|
||||
SetOutputFileName(OUTPUTFILE)
|
||||
module.generate()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -121,4 +121,3 @@ f = Function(OSStatus, 'RemoveMenuCommandProperty',
|
|||
(OSType, 'inPropertyTag', InMode),
|
||||
)
|
||||
functions.append(f)
|
||||
|
||||
|
|
|
@ -200,4 +200,3 @@ module.add(f)
|
|||
# generate output (open the output file as late as possible)
|
||||
SetOutputFileName(OUTPUTFILE)
|
||||
module.generate()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -156,4 +156,3 @@ f = Function(void, 'DrawText',
|
|||
(short, 'byteCount', InMode),
|
||||
)
|
||||
functions.append(f)
|
||||
|
||||
|
|
|
@ -64,4 +64,3 @@ class MyScanner(Scanner):
|
|||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -128,4 +128,3 @@ class MyScanner(Scanner):
|
|||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
|
|
@ -76,4 +76,3 @@ class HelpIndexingTool(Standard_Suite_Events,
|
|||
_signature = 'hiti'
|
||||
|
||||
_moduleName = 'HelpIndexingTool'
|
||||
|
||||
|
|
|
@ -67,4 +67,3 @@ def main():
|
|||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -614,4 +614,3 @@ def tuple_caselesssort(items):
|
|||
else:
|
||||
tupledlist.sort()
|
||||
return map(lambda (low, tuple): tuple, tupledlist)
|
||||
|
||||
|
|
|
@ -38,4 +38,3 @@ def Message(text):
|
|||
if not text:
|
||||
text = '<Alert text not specified>'
|
||||
EasyDialogs.Message(text)
|
||||
|
||||
|
|
|
@ -479,4 +479,3 @@ class Menu(FrameWork.Menu):
|
|||
elif hasattr(self.bar.parent, "domenu_" + callback):
|
||||
menuhandler = getattr(self.bar.parent, "domenu_" + callback)
|
||||
return menuhandler
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -579,4 +579,3 @@ class MultiList(List):
|
|||
else:
|
||||
set_sel(0, (j, i))
|
||||
#self._list.LAutoScroll()
|
||||
|
||||
|
|
|
@ -111,4 +111,3 @@ class Movie(W.Widget):
|
|||
if self.movie:
|
||||
self.movie.UpdateMovie()
|
||||
self.movie.MoviesTask(0)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -40,4 +40,3 @@ def findfreezedirectives(program):
|
|||
else:
|
||||
print '** Unknown directive', line
|
||||
return extra_modules, exclude_modules, optional_modules, extra_path
|
||||
|
||||
|
|
|
@ -34,4 +34,3 @@ def warnings(module_dict):
|
|||
problems = problems + 1
|
||||
print 'Warning: %s not included: %s %s'%(name, module.gettype(), module)
|
||||
return problems
|
||||
|
||||
|
|
|
@ -42,4 +42,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
@ -50,4 +50,3 @@ gensuitemodule.processfile(TERMINAL,
|
|||
output=os.path.join(DSTDIR, 'Terminal'),
|
||||
basepkgname='StdSuites',
|
||||
edit_modnames=[], verbose=verbose)
|
||||
|
|
@ -155,4 +155,3 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue