2
0
Эх сурвалжийг харах

triple-double-quotes for docstrings

Thomas Waldmann 10 жил өмнө
parent
commit
3a33d57c7d

+ 5 - 5
attic/repository.py

@@ -33,19 +33,19 @@ class Repository:
     DEFAULT_SEGMENTS_PER_DIR = 10000
     DEFAULT_SEGMENTS_PER_DIR = 10000
 
 
     class DoesNotExist(Error):
     class DoesNotExist(Error):
-        """Repository {} does not exist"""
+        """Repository {} does not exist."""
 
 
     class AlreadyExists(Error):
     class AlreadyExists(Error):
-        """Repository {} already exists"""
+        """Repository {} already exists."""
 
 
     class InvalidRepository(Error):
     class InvalidRepository(Error):
-        """{} is not a valid repository"""
+        """{} is not a valid repository."""
 
 
     class CheckNeeded(Error):
     class CheckNeeded(Error):
-        '''Inconsistency detected. Please run "attic check {}"'''
+        """Inconsistency detected. Please run "attic check {}"."""
 
 
     class ObjectNotFound(Error):
     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):
     def __init__(self, path, create=False, exclusive=False):
         self.path = path
         self.path = path

+ 1 - 1
attic/testsuite/helpers.py

@@ -139,7 +139,7 @@ class PruneSplitTestCase(AtticTestCase):
     def test(self):
     def test(self):
 
 
         def local_to_UTC(month, day):
         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'))
             seconds = mktime(strptime('2013-%02d-%02d 12:00' % (month, day), '%Y-%m-%d %H:%M'))
             return datetime.fromtimestamp(seconds, tz=timezone.utc)
             return datetime.fromtimestamp(seconds, tz=timezone.utc)