RawImageCreator: use hashlib unconditionally
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 18 Oct 2012 11:50:23 +0000 (14:50 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 18 Oct 2012 15:47:57 +0000 (18:47 +0300)
commit0f880c1c4fa2a2f67413aa4043a7e52963a2b786
treeddca8aa02778a765bef8ad72c8da1f06ee232f05
parentc8b6d6748212982ffb7d7174f8c047e285717379
RawImageCreator: use hashlib unconditionally

mic does not work with python < 2.5 (see distfiles/mic.spec, for example), so
we can use hashlib without falling-back to 'import sha1'. This patch cleans-up
the code a bit and removes the fall-back to 'import sha1' stuff.

I move 'import hashlib' to the top level because it is cleaner and because I
will need hashlib very soon in the next patch.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/imager/raw.py