Skip to content

Commit 5fce40b

Browse files
committed
Removed repeated block of code
1 parent bf37cf0 commit 5fce40b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cmd2/cmd2.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,13 +3894,6 @@ def cmdloop(self, intro: Optional[str] = None) -> None:
38943894
if callargs:
38953895
self.cmdqueue.extend(callargs)
38963896

3897-
# Only the main thread is allowed to set a new signal handler in Python, so only attempt if that is the case
3898-
if threading.current_thread() is threading.main_thread():
3899-
# Register a SIGINT signal handler for Ctrl+C
3900-
import signal
3901-
original_sigint_handler = signal.getsignal(signal.SIGINT)
3902-
signal.signal(signal.SIGINT, self.sigint_handler)
3903-
39043897
# Grab terminal lock before the prompt has been drawn by readline
39053898
self.terminal_lock.acquire()
39063899

0 commit comments

Comments
 (0)