mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 14:37:06 +02:00
removed some unnecessary braces
This commit is contained in:
@@ -38,7 +38,7 @@ class Keyring:
|
||||
|
||||
result = GnomeKeyring.unlock_sync(self._defaultKeyring, None)
|
||||
|
||||
if (result != GnomeKeyring.Result.OK):
|
||||
if result != GnomeKeyring.Result.OK:
|
||||
raise Exception('Failed to unlock default keyring')
|
||||
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ def terminate_subprocesses(timeout = 3.0):
|
||||
|
||||
wd.stop()
|
||||
|
||||
if (not wd.triggered):
|
||||
if not wd.triggered:
|
||||
logging.info('All subprocesses exited normally.')
|
||||
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ def main():
|
||||
try:
|
||||
cfg = read_config()
|
||||
|
||||
if (cfg == None):
|
||||
if cfg == None:
|
||||
logging.critical('Cannot find configuration file. Please run mailnag-config first.')
|
||||
exit(1)
|
||||
|
||||
@@ -244,7 +244,7 @@ def start(cfg, hookreg):
|
||||
|
||||
def poll_func():
|
||||
try:
|
||||
while (True):
|
||||
while True:
|
||||
poll_thread_stop.wait(timeout = 60.0 * check_interval)
|
||||
if poll_thread_stop.is_set():
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user