Removed outdated commented code
This commit is contained in:
parent
497c6cca94
commit
030ff4472a
@ -11,27 +11,6 @@ import libtorrent as lt
|
|||||||
import os
|
import os
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
# def common_path(paths, sep=os.path.sep):
|
|
||||||
# dirs = zip(*(p for p in paths))
|
|
||||||
# return [x[0] for x in takewhile(lambda x: all(n == x[0] for n in x[1:]), dirs)]
|
|
||||||
|
|
||||||
|
|
||||||
# def prepare_paths(paths):
|
|
||||||
# sep=os.path.sep
|
|
||||||
# _deny_common = ('', '/')
|
|
||||||
# _deny_common = [x.split(sep) for x in _deny_common]
|
|
||||||
# paths = sorted(x.split(sep) for x in paths)
|
|
||||||
# parents = []
|
|
||||||
# current = paths[0]
|
|
||||||
# parents.append(current)
|
|
||||||
# for path in paths[1:]:
|
|
||||||
# cp = common_path((parents[-1], path))
|
|
||||||
# if cp not in _deny_common:
|
|
||||||
# parents[-1] = cp
|
|
||||||
# else:
|
|
||||||
# parents.append(path)
|
|
||||||
# return map(sep.join, parents)
|
|
||||||
|
|
||||||
|
|
||||||
class TorrentSyncTransport(SyncTransport):
|
class TorrentSyncTransport(SyncTransport):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user