summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-19 19:34:30 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-19 19:34:30 -0400
commitc319cd3dfdedf1df6b772855d2936af3c0ab205d (patch)
tree811a8250c8e52ae7d2ff3763f309628ed15d395e /cmd2.py
parent1cd0a38cac5482bdf274f42ffcdc41519a5362b1 (diff)
downloadcmd2-git-c319cd3dfdedf1df6b772855d2936af3c0ab205d.tar.gz
Fix unit tests
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index c4bb5d13..851a8ac7 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1501,7 +1501,7 @@ class Cmd(cmd.Cmd):
def preloop(self):
"""Hook method executed once when the cmdloop() method is called."""
# Register a default SIGINT signal handler for Ctrl+C
- signal.signal(signalnum=signal.SIGINT, handler=self.sigint_handler)
+ signal.signal(signal.SIGINT, self.sigint_handler)
def precmd(self, statement):
"""Hook method executed just before the command is processed by ``onecmd()`` and after adding it to the history.