[3.13] Fix idlelib typos (GH-125484) (#125487)

Fix idlelib typos (GH-125484)

Propagate fixes in Doc/library/idle.rst to help.html.
Change 'interruptable' to 'interruptible' in run.py.
The latter was reported by ember91 in PR 125473.
(cherry picked from commit 3fea1d000e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2024-10-14 23:38:40 +02:00 committed by GitHub
parent d54dbd62cc
commit 6fb48c69fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 15 deletions

View file

@ -108,11 +108,11 @@ else:
# Thread shared globals: Establish a queue between a subthread (which handles
# the socket) and the main thread (which runs user code), plus global
# completion, exit and interruptable (the main thread) flags:
# completion, exit and interruptible (the main thread) flags:
exit_now = False
quitting = False
interruptable = False
interruptible = False
def main(del_exitfunc=False):
"""Start the Python execution server in a subprocess
@ -582,14 +582,14 @@ class Executive:
self.locals = {}
def runcode(self, code):
global interruptable
global interruptible
try:
self.user_exc_info = None
interruptable = True
interruptible = True
try:
exec(code, self.locals)
finally:
interruptable = False
interruptible = False
except SystemExit as e:
if e.args: # SystemExit called with an argument.
ob = e.args[0]
@ -615,7 +615,7 @@ class Executive:
flush_stdout()
def interrupt_the_server(self):
if interruptable:
if interruptible:
thread.interrupt_main()
def start_the_debugger(self, gui_adap_oid):