From 10a7eae498c23f8e49265564f8cd14a4bb6934e9 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 17 Aug 2012 11:31:31 -0400 Subject: [PATCH] cc-4228: formatting --- python_apps/media-monitor2/media/monitor/events.py | 2 +- .../media-monitor2/media/monitor/watchersyncer.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/python_apps/media-monitor2/media/monitor/events.py b/python_apps/media-monitor2/media/monitor/events.py index 43644be37..71b4e99ff 100644 --- a/python_apps/media-monitor2/media/monitor/events.py +++ b/python_apps/media-monitor2/media/monitor/events.py @@ -10,7 +10,7 @@ from media.monitor.exceptions import BadSongFile class PathChannel(object): def __init__(self, signal, path): self.signal = signal - self.path = path + self.path = path class EventRegistry(object): """ diff --git a/python_apps/media-monitor2/media/monitor/watchersyncer.py b/python_apps/media-monitor2/media/monitor/watchersyncer.py index c1c7a610c..86e66f3f9 100644 --- a/python_apps/media-monitor2/media/monitor/watchersyncer.py +++ b/python_apps/media-monitor2/media/monitor/watchersyncer.py @@ -19,9 +19,9 @@ class RequestSync(threading.Thread,Loggable): """ def __init__(self, watcher, requests): threading.Thread.__init__(self) - self.watcher = watcher - self.requests = requests - self.retries = 1 + self.watcher = watcher + self.requests = requests + self.retries = 1 self.request_wait = 0.3 @LazyProperty @@ -124,9 +124,8 @@ class WatchSyncer(ReportHandler,Loggable): try: # If there is a strange bug anywhere in the code the next line # should be a suspect - #if self.contractor.register( event ): - #self.push_queue( event ) - self.push_queue( event ) + if self.contractor.register(event): self.push_queue( event ) + #self.push_queue( event ) except BadSongFile as e: self.fatal_exception("Received bas song file '%s'" % e.path, e) except Exception as e: