cc-4228: formatting

This commit is contained in:
Rudi Grinberg 2012-08-17 11:31:31 -04:00
parent 4a10fb2ecf
commit 10a7eae498
2 changed files with 6 additions and 7 deletions
python_apps/media-monitor2/media/monitor

View File

@ -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):
"""

View File

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