Browse Source

fix typos

Thomas Waldmann 10 years ago
parent
commit
cc88d174af
3 changed files with 3 additions and 3 deletions
  1. 1 1
      borg/remote.py
  2. 1 1
      borg/repository.py
  3. 1 1
      borg/testsuite/archiver.py

+ 1 - 1
borg/remote.py

@@ -203,7 +203,7 @@ class RemoteRepository:
                     break
             r, w, x = select.select(self.r_fds, w_fds, self.x_fds, 1)
             if x:
-                raise Exception('FD exception occured')
+                raise Exception('FD exception occurred')
             if r:
                 data = os.read(self.stdout_fd, BUFSIZE)
                 if not data:

+ 1 - 1
borg/repository.py

@@ -413,7 +413,7 @@ class Repository:
         self.segments.setdefault(segment, 0)
 
     def preload(self, ids):
-        """Preload objects (only applies to remote repositories
+        """Preload objects (only applies to remote repositories)
         """
 
 

+ 1 - 1
borg/testsuite/archiver.py

@@ -83,7 +83,7 @@ class ArchiverTestCaseBase(BaseTestCase):
         os.mkdir(self.keys_path)
         os.mkdir(self.cache_path)
         with open(self.exclude_file_path, 'wb') as fd:
-            fd.write(b'input/file2\n# A commment line, then a blank line\n\n')
+            fd.write(b'input/file2\n# A comment line, then a blank line\n\n')
         self._old_wd = os.getcwd()
         os.chdir(self.tmpdir)