From 737fb89dd15e4db6ef30d25963e774ae09cc49dc Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 18 Dec 2012 21:14:22 +0200 Subject: Issue #16714: use 'raise' exceptions, don't 'throw'. Patch by Serhiy Storchaka. --- Lib/tkinter/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/tkinter') diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 70736623a1..f2cb60f4b5 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -147,7 +147,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: -- cgit v1.2.1