浏览代码

Merge pull request #1182 from c4rlo/typo-fixes

typo fixes in comment+docstring
TW 9 年之前
父节点
当前提交
e41ef8471e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/borg/archiver.py
  2. 1 1
      src/borg/selftest.py

+ 1 - 1
src/borg/archiver.py

@@ -2158,7 +2158,7 @@ def main():  # pragma: no cover
     if os.path.basename(sys.argv[0]) == "borgfs":
         sys.argv.insert(1, "mount")
 
-    # Make sure stdout and stderr have errors='replace') to avoid unicode
+    # Make sure stdout and stderr have errors='replace' to avoid unicode
     # issues when print()-ing unicode file names
     sys.stdout = io.TextIOWrapper(sys.stdout.buffer, sys.stdout.encoding, 'replace', line_buffering=True)
     sys.stderr = io.TextIOWrapper(sys.stderr.buffer, sys.stderr.encoding, 'replace', line_buffering=True)

+ 1 - 1
src/borg/selftest.py

@@ -5,7 +5,7 @@ Self testing module
 The selftest() function runs a small test suite of relatively fast tests that are meant to discover issues
 with the way Borg was compiled or packaged and also bugs in Borg itself.
 
-Theses tests are a subset of the borg/testsuite and are run with Pythons built-in unittest, hence none of
+These tests are a subset of the borg/testsuite and are run with Pythons built-in unittest, hence none of
 the tests used for this can or should be ported to py.test currently.
 
 To assert that self test discovery works correctly the number of tests is kept in the SELFTEST_COUNT