hashutil.py
10 lines
| 183 B
| text/x-python
|
PythonLexer
Augie Fackler
|
r44516 | from __future__ import absolute_import | ||
import hashlib | ||||
try: | ||||
from ..thirdparty import sha1dc | ||||
sha1 = sha1dc.sha1 | ||||
except (ImportError, AttributeError): | ||||
sha1 = hashlib.sha1 | ||||