Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e72831 commit 806bfadCopy full SHA for 806bfad
1 file changed
Lib/tkinter/__init__.py
@@ -146,8 +146,12 @@ def _tkerror(err):
146
"""Internal function."""
147
pass
148
149
-def _exit(code='0'):
+def _exit(code=0):
150
"""Internal function. Calling it will throw the exception SystemExit."""
151
+ try:
152
+ code = int(code)
153
+ except ValueError:
154
+ pass
155
raise SystemExit(code)
156
157
_varnum = 0
0 commit comments