Fix coverage and lint.

This commit is contained in:
Florian Bruhin 2015-09-10 07:44:45 +02:00
parent 5be408b79f
commit e6cf76e40c

View File

@ -38,7 +38,7 @@ from qutebrowser.utils import (log, usertypes, error, objreg, standarddir,
CONNECT_TIMEOUT = 100
WRITE_TIMEOUT = 1000
READ_TIMEOUT = 5000
ATIME_INTERVAL = 60 * 60 * 6 * 1000 # 6 hours
ATIME_INTERVAL = 60 * 60 * 6 * 1000 # 6 hours
PROTOCOL_VERSION = 1
@ -175,7 +175,7 @@ class IPCServer(QObject):
self._timer.setInterval(READ_TIMEOUT)
self._timer.timeout.connect(self.on_timeout)
if os.name == 'nt':
if os.name == 'nt': # pragma: no coverage
self._atime_timer = None
else:
self._atime_timer = usertypes.Timer(self, 'ipc-atime')