cc-4105: more formatting fixes

This commit is contained in:
Rudi Grinberg 2012-08-09 16:17:02 -04:00
parent 38e8c3871e
commit a9819f54d5
2 changed files with 6 additions and 4 deletions

View File

@ -14,8 +14,8 @@ class MMConfig(object):
def __getitem__(self, key): def __getitem__(self, key):
""" """
We always return a copy of the config item to prevent callers from doing any modifications We always return a copy of the config item to prevent callers from
through the returned objects methods doing any modifications through the returned objects methods
""" """
return copy.deepcopy(self.cfg[key]) return copy.deepcopy(self.cfg[key])

View File

@ -31,7 +31,8 @@ class CouldNotCreateIndexFile(Exception):
class DirectoryIsNotListed(Exception): class DirectoryIsNotListed(Exception):
def __init__(self,dir_id): def __init__(self,dir_id):
self.dir_id = 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): class FailedToCreateDir(Exception):
def __init__(self,path, parent): def __init__(self,path, parent):
@ -44,4 +45,5 @@ class NoDirectoryInAirtime(Exception):
self.path = path self.path = path
self.does_exist = does_exist self.does_exist = does_exist
def __str__(self): 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)