summaryrefslogtreecommitdiff
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:27:37 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:27:37 +0200
commit4bb142b1b712d8e67c81687d396685fba55abf77 (patch)
tree749fcb481ec718af5c9c048a0e2f170b4d71c353 /Lib/lib-tk/Tkinter.py
parent80ab6c53c6d90c0fae3828e5888d864d44b1c2ca (diff)
downloadcpython-git-4bb142b1b712d8e67c81687d396685fba55abf77.tar.gz
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 4791950bba..e5c2e5181f 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -155,7 +155,7 @@ def _tkerror(err):
pass
def _exit(code=0):
- """Internal function. Calling it will throw the exception SystemExit."""
+ """Internal function. Calling it will raise the exception SystemExit."""
try:
code = int(code)
except ValueError: