branch | stable |
changeset 46785 | 521ac0d7047f |
parent 44059 | 7126d8b8e0e6 |
child 48875 | 6000f5b25c9b |
46784:65f437c240f2 | 46785:521ac0d7047f |
---|---|
1 from __future__ import absolute_import |
1 from __future__ import absolute_import |
2 |
2 |
3 import hashlib |
3 import hashlib |
4 |
4 |
5 try: |
5 try: |
6 from ..thirdparty import sha1dc |
6 from ..thirdparty import sha1dc # pytype: disable=import-error |
7 |
7 |
8 sha1 = sha1dc.sha1 |
8 sha1 = sha1dc.sha1 |
9 except (ImportError, AttributeError): |
9 except (ImportError, AttributeError): |
10 sha1 = hashlib.sha1 |
10 sha1 = hashlib.sha1 |