浏览代码

fix typos and remove debug code

Antoine Beaupré 9 年之前
父节点
当前提交
4c6915cce5
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 1
      borg/archiver.py
  2. 1 3
      borg/testsuite/helpers.py

+ 1 - 1
borg/archiver.py

@@ -681,7 +681,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
                                action='store_const', default=sys.stdin.isatty(),
                                action='store_const', default=sys.stdin.isatty(),
                                help="""toggle progress display while creating the archive, showing Original,
                                help="""toggle progress display while creating the archive, showing Original,
                                Compressed and Deduplicated sizes, followed by the Number of files seen
                                Compressed and Deduplicated sizes, followed by the Number of files seen
-                               and the path being processd, default: %(default)s""")
+                               and the path being processed, default: %(default)s""")
         subparser.add_argument('-e', '--exclude', dest='excludes',
         subparser.add_argument('-e', '--exclude', dest='excludes',
                                type=ExcludePattern, action='append',
                                type=ExcludePattern, action='append',
                                metavar="PATTERN", help='exclude paths matching PATTERN')
                                metavar="PATTERN", help='exclude paths matching PATTERN')

+ 1 - 3
borg/testsuite/helpers.py

@@ -1,5 +1,3 @@
-import pdb
-
 import hashlib
 import hashlib
 from time import mktime, strptime
 from time import mktime, strptime
 from datetime import datetime, timezone, timedelta
 from datetime import datetime, timezone, timedelta
@@ -442,4 +440,4 @@ This archive:                   10 B                 10 B                 10 B""
     s = "{0.osize_fmt}".format(stats)
     s = "{0.osize_fmt}".format(stats)
     assert s == "10 B"
     assert s == "10 B"
     # kind of redundant, but id is variable so we can't match reliably
     # kind of redundant, but id is variable so we can't match reliably
-    assert stats.__repr__() == '<Statistics object at {:#x} (10, 10, 10)>'.format(id(stats))
+    assert repr(stats) == '<Statistics object at {:#x} (10, 10, 10)>'.format(id(stats))