소스 검색

fix linter errors

Thomas Waldmann 3 년 전
부모
커밋
c01f3527e5
2개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      src/borg/archiver.py
  2. 0 3
      src/borg/cache.py

+ 1 - 1
src/borg/archiver.py

@@ -1356,7 +1356,7 @@ class Archiver:
             tarinfo.uid = item.uid
             tarinfo.uid = item.uid
             tarinfo.gid = item.gid
             tarinfo.gid = item.gid
             tarinfo.uname = item.get('user', '')
             tarinfo.uname = item.get('user', '')
-            tarinfo.gname = item.get('group',  '')
+            tarinfo.gname = item.get('group', '')
             # The linkname in tar has 2 uses:
             # The linkname in tar has 2 uses:
             # for symlinks it means the destination, while for hardlinks it refers to the file.
             # for symlinks it means the destination, while for hardlinks it refers to the file.
             # Since hardlinks in tar have a different type code (LNKTYPE) the format might
             # Since hardlinks in tar have a different type code (LNKTYPE) the format might

+ 0 - 3
src/borg/cache.py

@@ -1,5 +1,4 @@
 import configparser
 import configparser
-import json
 import os
 import os
 import shutil
 import shutil
 import stat
 import stat
@@ -655,8 +654,6 @@ class LocalCache(CacheStatsMixin):
         archive indexes.
         archive indexes.
         """
         """
         archive_path = os.path.join(self.path, 'chunks.archive.d')
         archive_path = os.path.join(self.path, 'chunks.archive.d')
-        # An index of chunks whose size had to be fetched
-        chunks_fetched_size_index = ChunkIndex()
         # Instrumentation
         # Instrumentation
         processed_item_metadata_bytes = 0
         processed_item_metadata_bytes = 0
         processed_item_metadata_chunks = 0
         processed_item_metadata_chunks = 0