Browse Source

typo fixes in comment+docstring

Carlo Teubner 9 năm trước cách đây
mục cha
commit
ff470f49f3
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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