removed some unnecessary braces

This commit is contained in:
Patrick Ulbrich
2013-10-04 17:10:14 +02:00
parent c5bdb66231
commit df1a8c4d43
3 changed files with 4 additions and 4 deletions

View File

@@ -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')

View File

@@ -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.')

View File

@@ -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