From 17220d8ef5b40a89939a051377635c529236459e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 30 Jul 2014 17:50:12 +0200 Subject: [PATCH] Fix signal imports --- qutebrowser/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index f2cd3080b..9ec9e3849 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -24,8 +24,8 @@ import sys import subprocess import faulthandler import configparser +import signal from bdb import BdbQuit -from signal import signal, SIGINT from base64 import b64encode from PyQt5.QtWidgets import QApplication, QDialog, QMessageBox @@ -351,7 +351,8 @@ class Application(QApplication): exit status, and handles Ctrl+C properly by passing control to the Python interpreter once all 500ms. """ - signal(SIGINT, lambda *args: self.exit(128 + SIGINT)) + signal.signal(signal.SIGINT, + lambda *args: self.exit(128 + signal.SIGINT)) timer = Timer(self, 'python_hacks') timer.start(500) timer.timeout.connect(lambda: None)