1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-20 21:27:32 +00:00

Remove unused imports

This commit is contained in:
Jonas Borgström 2013-10-18 21:00:20 +02:00
parent b5b0b7b322
commit a579b7917b
3 changed files with 2 additions and 6 deletions

View file

@ -12,7 +12,7 @@
from attic.cache import Cache
from attic.key import key_creator
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
from attic.remote import RepositoryServer, RemoteRepository, ConnectionClosed

View file

@ -1,6 +1,3 @@
from heapq import heappush, heapify, heapreplace, heappop
class LRUCache(dict):
def __init__(self, capacity):

View file

@ -77,8 +77,8 @@ def attic(self, *args, **kw):
self.assert_equal(exit_code, ret)
return output
args = list(args)
stdout, stderr = sys.stdout, sys.stderr
try:
stdout, stderr = sys.stdout, sys.stderr
output = StringIO()
sys.stdout = sys.stderr = output
ret = self.archiver.run(args)
@ -100,7 +100,6 @@ def create_regual_file(self, name, size=0):
with open(filename, 'wb') as fd:
fd.write(b'X' * size)
def create_test_files(self):
"""Create a minimal test case including all supported file types
"""