Update database.py

PEP8
This commit is contained in:
Elizabeth Fischer 2016-06-22 14:03:32 -04:00 committed by GitHub
parent ffe9e77e36
commit 10810482bc

View File

@ -631,11 +631,13 @@ def _exit(self):
class CorruptDatabaseError(SpackError):
def __init__(self, path, msg=''):
super(CorruptDatabaseError, self).__init__(
"Spack database is corrupt: %s. %s. Try running `spack reindex` to fix." % (path, msg))
"Spack database is corrupt: %s. %s." + \
"Try running `spack reindex` to fix." % (path, msg))
class InvalidDatabaseVersionError(SpackError):
def __init__(self, expected, found):
super(InvalidDatabaseVersionError, self).__init__(
"Expected database version %s but found version %s. Try running `spack reindex` to fix." %
"Expected database version %s but found version %s." + \
"Try running `spack reindex` to fix." %
(expected, found))