From: zooko Date: Tue, 23 Jun 2009 04:57:52 +0000 (+0530) Subject: trivial: hush pyflakes X-Git-Url: https://git.rkrishnan.org/specifications/components/com_hotproperty/flags/reliability?a=commitdiff_plain;h=2a0ca98cb7aa1f95da5b8e6140d83dcaee559259;p=tahoe-lafs%2Fzfec.git trivial: hush pyflakes Ignore-this: d86bbb9aa83ecab4f44f0f4fd4da1d72 darcs-hash:5dff5696b0cc3578205456c86d3df0e96437e986 --- diff --git a/zfec/zfec/filefec.py b/zfec/zfec/filefec.py index 99de3bd..682c387 100644 --- 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)