From 4b934a07babbdd2414347ee06de200990b5b1f49 Mon Sep 17 00:00:00 2001 From: John Garland Date: Mon, 22 Jun 2009 14:11:02 +0000 Subject: [PATCH] dummy function now accepts arbitrary number of variables. metafile uses hashlib instead of sha library. --- deluge/metafile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/metafile.py b/deluge/metafile.py index f18849779..bd4ce1a71 100644 --- a/deluge/metafile.py +++ b/deluge/metafile.py @@ -20,7 +20,7 @@ import os import os.path import sys import time -from sha import sha +from hashlib import sha1 as sha from deluge.bencode import bencode from deluge.log import LOG as log @@ -52,7 +52,7 @@ def decode_from_filesystem(path): return decoded_path -def dummy(v): +def dummy(*v): pass def make_meta_file(path, url, piece_length, progress=dummy,