summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/netsvc.py6
-rw-r--r--bin/pooler.py3
2 files changed, 2 insertions, 7 deletions
diff --git a/bin/netsvc.py b/bin/netsvc.py
index 00d833a3061..77e14caa362 100644
--- a/bin/netsvc.py
+++ b/bin/netsvc.py
@@ -162,11 +162,7 @@ class Agent(object):
def setAlarm(self, fn, dt, args=[], kwargs={}):
wait = dt - time.time()
if wait > 0:
- self._logger.notifyChannel(
- 'timers', LOG_DEBUG,
- "Job scheduled in %s seconds for %s.%s" % (wait,
- fn.im_class.__name__,
- fn.func_name))
+ self._logger.notifyChannel('timers', LOG_DEBUG, "Job scheduled in %s seconds for %s.%s" % (wait, fn.im_class.__name__, fn.func_name))
timer = threading.Timer(wait, fn, args, kwargs)
timer.start()
self._timers.append(timer)
diff --git a/bin/pooler.py b/bin/pooler.py
index 95eb13314a2..0854770078d 100644
--- a/bin/pooler.py
+++ b/bin/pooler.py
@@ -53,8 +53,7 @@ def get_db_and_pool(db_name, force_demo=False, status={}, update_module=False):
if not update_module:
import report
report.interface.register_all(db)
-
- pool.get('ir.cron')._poolJobs(db.dbname)
+ pool.get('ir.cron')._poolJobs(db.dbname)
return db, pool
def restart_pool(db_name, force_demo=False, update_module=False):