1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

triple-double-quotes for docstrings

This commit is contained in:
Thomas Waldmann 2015-03-17 23:23:56 +01:00
parent a21da5d2e0
commit 3a33d57c7d
2 changed files with 6 additions and 6 deletions

View file

@ -33,19 +33,19 @@ class Repository:
DEFAULT_SEGMENTS_PER_DIR = 10000
class DoesNotExist(Error):
"""Repository {} does not exist"""
"""Repository {} does not exist."""
class AlreadyExists(Error):
"""Repository {} already exists"""
"""Repository {} already exists."""
class InvalidRepository(Error):
"""{} is not a valid repository"""
"""{} is not a valid repository."""
class CheckNeeded(Error):
'''Inconsistency detected. Please run "attic check {}"'''
"""Inconsistency detected. Please run "attic check {}"."""
class ObjectNotFound(Error):
"""Object with key {} not found in repository {}"""
"""Object with key {} not found in repository {}."""
def __init__(self, path, create=False, exclusive=False):
self.path = path

View file

@ -139,7 +139,7 @@ class PruneSplitTestCase(AtticTestCase):
def test(self):
def local_to_UTC(month, day):
'Convert noon on the month and day in 2013 to UTC.'
"""Convert noon on the month and day in 2013 to UTC."""
seconds = mktime(strptime('2013-%02d-%02d 12:00' % (month, day), '%Y-%m-%d %H:%M'))
return datetime.fromtimestamp(seconds, tz=timezone.utc)