Fix coverage and lint.
This commit is contained in:
parent
5be408b79f
commit
e6cf76e40c
@ -38,7 +38,7 @@ from qutebrowser.utils import (log, usertypes, error, objreg, standarddir,
|
|||||||
CONNECT_TIMEOUT = 100
|
CONNECT_TIMEOUT = 100
|
||||||
WRITE_TIMEOUT = 1000
|
WRITE_TIMEOUT = 1000
|
||||||
READ_TIMEOUT = 5000
|
READ_TIMEOUT = 5000
|
||||||
ATIME_INTERVAL = 60 * 60 * 6 * 1000 # 6 hours
|
ATIME_INTERVAL = 60 * 60 * 6 * 1000 # 6 hours
|
||||||
PROTOCOL_VERSION = 1
|
PROTOCOL_VERSION = 1
|
||||||
|
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ class IPCServer(QObject):
|
|||||||
self._timer.setInterval(READ_TIMEOUT)
|
self._timer.setInterval(READ_TIMEOUT)
|
||||||
self._timer.timeout.connect(self.on_timeout)
|
self._timer.timeout.connect(self.on_timeout)
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt': # pragma: no coverage
|
||||||
self._atime_timer = None
|
self._atime_timer = None
|
||||||
else:
|
else:
|
||||||
self._atime_timer = usertypes.Timer(self, 'ipc-atime')
|
self._atime_timer = usertypes.Timer(self, 'ipc-atime')
|
||||||
|
Loading…
Reference in New Issue
Block a user