From 2a0ca98cb7aa1f95da5b8e6140d83dcaee559259 Mon Sep 17 00:00:00 2001 From: zooko Date: Tue, 23 Jun 2009 10:27:52 +0530 Subject: [PATCH] trivial: hush pyflakes Ignore-this: d86bbb9aa83ecab4f44f0f4fd4da1d72 darcs-hash:5dff5696b0cc3578205456c86d3df0e96437e986 --- zfec/zfec/filefec.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.45.2