Commit 9c7cc1e6 authored by Andreas Jung's avatar Andreas Jung

using try.except

parent c0facdb0
......@@ -18,11 +18,11 @@ between versions."""
import sys
if sys.version_info[:2] >= (2, 6):
try:
import hashlib
sha1 = hashlib.sha1
new = sha1
else:
except ImportError:
import sha
sha1 = sha.new
new = sha1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment