summaryrefslogtreecommitdiffstats
path: root/Lib/atexit.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-14 18:09:23 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-14 18:09:23 (GMT)
commit146965abf2378cdb248cead43a613fb81aa7d1a4 (patch)
tree204a0d5166a3fd27360f3dc804b0d646ac4928aa /Lib/atexit.py
parent538f05c94dcf9e4ebe4779ccdc86ba238d885dc6 (diff)
downloadcpython-146965abf2378cdb248cead43a613fb81aa7d1a4.zip
cpython-146965abf2378cdb248cead43a613fb81aa7d1a4.tar.gz
cpython-146965abf2378cdb248cead43a613fb81aa7d1a4.tar.bz2
Whitespace standardization.
Diffstat (limited to 'Lib/atexit.py')
-rw-r--r--Lib/atexit.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/atexit.py b/Lib/atexit.py
index a311630..b687cb4 100644
--- a/Lib/atexit.py
+++ b/Lib/atexit.py
@@ -2,7 +2,7 @@
atexit.py - allow programmer to define multiple exit functions to be executed
upon normal program termination.
-One public function, register, is defined.
+One public function, register, is defined.
"""
_exithandlers = []
@@ -12,7 +12,7 @@ def _run_exitfuncs():
_exithandlers is traversed in reverse order so functions are executed
last in, first out.
"""
-
+
while _exithandlers:
func, targs, kargs = _exithandlers[-1]
apply(func, targs, kargs)
@@ -51,4 +51,3 @@ if __name__ == "__main__":
register(x2, 12)
register(x3, 5, "bar")
register(x3, "no kwd args")
-