Browse Source

fixed some minor issues found by pycharm/pytest-flakes

Thomas Waldmann 10 years ago
parent
commit
9b9c808713
2 changed files with 2 additions and 2 deletions
  1. 1 1
      borg/archive.py
  2. 1 1
      docs/conf.py

+ 1 - 1
borg/archive.py

@@ -544,7 +544,7 @@ class Archive:
         return Archive._open_rb(path, st)
 
 
-class RobustUnpacker():
+class RobustUnpacker:
     """A restartable/robust version of the streaming msgpack unpacker
     """
     item_keys = [msgpack.packb(name) for name in ('path', 'mode', 'source', 'chunks', 'rdev', 'xattrs', 'user', 'group', 'uid', 'gid', 'mtime')]

+ 1 - 1
docs/conf.py

@@ -11,12 +11,12 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-import sys, os
 from borg import __version__ as sw_version
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
+#import sys, os
 #sys.path.insert(0, os.path.abspath('.'))
 
 # -- General configuration -----------------------------------------------------