mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
dummy function now accepts arbitrary number of variables.
metafile uses hashlib instead of sha library.
This commit is contained in:
parent
206718de08
commit
4b934a07ba
@ -20,7 +20,7 @@ import os
|
|||||||
import os.path
|
import os.path
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from sha import sha
|
from hashlib import sha1 as sha
|
||||||
|
|
||||||
from deluge.bencode import bencode
|
from deluge.bencode import bencode
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
@ -52,7 +52,7 @@ def decode_from_filesystem(path):
|
|||||||
|
|
||||||
return decoded_path
|
return decoded_path
|
||||||
|
|
||||||
def dummy(v):
|
def dummy(*v):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_meta_file(path, url, piece_length, progress=dummy,
|
def make_meta_file(path, url, piece_length, progress=dummy,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user