From a9819f54d505d083baa5e913aea58de9c7634393 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Thu, 9 Aug 2012 16:17:02 -0400 Subject: [PATCH] cc-4105: more formatting fixes --- python_apps/media-monitor2/media/monitor/config.py | 4 ++-- python_apps/media-monitor2/media/monitor/exceptions.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python_apps/media-monitor2/media/monitor/config.py b/python_apps/media-monitor2/media/monitor/config.py index 17f1ff152..0669800b3 100644 --- a/python_apps/media-monitor2/media/monitor/config.py +++ b/python_apps/media-monitor2/media/monitor/config.py @@ -14,8 +14,8 @@ class MMConfig(object): def __getitem__(self, key): """ - We always return a copy of the config item to prevent callers from doing any modifications - through the returned objects methods + We always return a copy of the config item to prevent callers from + doing any modifications through the returned objects methods """ return copy.deepcopy(self.cfg[key]) diff --git a/python_apps/media-monitor2/media/monitor/exceptions.py b/python_apps/media-monitor2/media/monitor/exceptions.py index 52459b524..bcfcea6a7 100644 --- a/python_apps/media-monitor2/media/monitor/exceptions.py +++ b/python_apps/media-monitor2/media/monitor/exceptions.py @@ -31,7 +31,8 @@ class CouldNotCreateIndexFile(Exception): class DirectoryIsNotListed(Exception): def __init__(self,dir_id): self.dir_id = dir_id - def __str__(self): return "%d was not listed as a directory in the database" % self.dir_id + def __str__(self): + return "%d was not listed as a directory in the database" % self.dir_id class FailedToCreateDir(Exception): def __init__(self,path, parent): @@ -44,4 +45,5 @@ class NoDirectoryInAirtime(Exception): self.path = path self.does_exist = does_exist def __str__(self): - return "Directory '%s' does not exist in Airtime.\nHowever: %s do exist." % (self.path, self.does_exist) + return "Directory '%s' does not exist in Airtime.\n \ + However: %s do exist." % (self.path, self.does_exist)