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.
2 parents 50cdd55 + 806bfad commit 14857cfCopy full SHA for 14857cf
1 file changed
Lib/tkinter/__init__.py
@@ -148,8 +148,12 @@ def _tkerror(err):
148
"""Internal function."""
149
pass
150
151
-def _exit(code='0'):
+def _exit(code=0):
152
"""Internal function. Calling it will throw the exception SystemExit."""
153
+ try:
154
+ code = int(code)
155
+ except ValueError:
156
+ pass
157
raise SystemExit(code)
158
159
_varnum = 0
0 commit comments