projects
/
tahoe-lafs
/
zfec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ed66af
)
trivial: hush pyflakes
author
zooko
<zooko@zooko.com>
Tue, 23 Jun 2009 04:57:52 +0000
(10:27 +0530)
committer
zooko
<zooko@zooko.com>
Tue, 23 Jun 2009 04:57:52 +0000
(10:27 +0530)
Ignore-this:
d86bbb9aa83ecab4f44f0f4fd4da1d72
darcs-hash:
5dff5696b0cc3578205456c86d3df0e96437e986
zfec/zfec/filefec.py
patch
|
blob
|
history
diff --git
a/zfec/zfec/filefec.py
b/zfec/zfec/filefec.py
index 99de3bdc87b9b58515486b7e938611bea2f473af..682c387a951d822bda8d24bd17a3ad37184c82fe 100644
(file)
--- a/
zfec/zfec/filefec.py
+++ b/
zfec/zfec/filefec.py
@@
-349,9
+349,11
@@
def encode_file(inf, cb, k, m, chunksize=4096):
try:
from hashlib import sha1
+ sha1 = sha1 # hush pyflakes
except ImportError:
# hashlib was added in Python 2.5.0.
- import sha as sha1
+ import sha
+ sha1 = sha
def encode_file_not_really(inf, cb, k, m, chunksize=4096):
enc = zfec.Encoder(k, m)