mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 06:01:54 +00:00
Remove unused imports
This commit is contained in:
parent
b5b0b7b322
commit
a579b7917b
3 changed files with 2 additions and 6 deletions
|
@ -12,7 +12,7 @@
|
||||||
from attic.cache import Cache
|
from attic.cache import Cache
|
||||||
from attic.key import key_creator
|
from attic.key import key_creator
|
||||||
from attic.helpers import location_validator, format_time, \
|
from attic.helpers import location_validator, format_time, \
|
||||||
format_file_mode, IncludePattern, ExcludePattern, exclude_path, adjust_patterns, to_localtime, \
|
format_file_mode, ExcludePattern, exclude_path, adjust_patterns, to_localtime, \
|
||||||
get_cache_dir, get_keys_dir, format_timedelta, prune_split, Manifest, Location, remove_surrogates
|
get_cache_dir, get_keys_dir, format_timedelta, prune_split, Manifest, Location, remove_surrogates
|
||||||
from attic.remote import RepositoryServer, RemoteRepository, ConnectionClosed
|
from attic.remote import RepositoryServer, RemoteRepository, ConnectionClosed
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
from heapq import heappush, heapify, heapreplace, heappop
|
|
||||||
|
|
||||||
|
|
||||||
class LRUCache(dict):
|
class LRUCache(dict):
|
||||||
|
|
||||||
def __init__(self, capacity):
|
def __init__(self, capacity):
|
||||||
|
|
|
@ -77,8 +77,8 @@ def attic(self, *args, **kw):
|
||||||
self.assert_equal(exit_code, ret)
|
self.assert_equal(exit_code, ret)
|
||||||
return output
|
return output
|
||||||
args = list(args)
|
args = list(args)
|
||||||
|
stdout, stderr = sys.stdout, sys.stderr
|
||||||
try:
|
try:
|
||||||
stdout, stderr = sys.stdout, sys.stderr
|
|
||||||
output = StringIO()
|
output = StringIO()
|
||||||
sys.stdout = sys.stderr = output
|
sys.stdout = sys.stderr = output
|
||||||
ret = self.archiver.run(args)
|
ret = self.archiver.run(args)
|
||||||
|
@ -100,7 +100,6 @@ def create_regual_file(self, name, size=0):
|
||||||
with open(filename, 'wb') as fd:
|
with open(filename, 'wb') as fd:
|
||||||
fd.write(b'X' * size)
|
fd.write(b'X' * size)
|
||||||
|
|
||||||
|
|
||||||
def create_test_files(self):
|
def create_test_files(self):
|
||||||
"""Create a minimal test case including all supported file types
|
"""Create a minimal test case including all supported file types
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue