##// END OF EJS Templates
rust-cpython: fix discrepancy in internal FFI lib version...
rust-cpython: fix discrepancy in internal FFI lib version The dependency to `sys-python3` stayed at version 0.7.1 when `cpython` got bumped to 0.7.2 for Python 3.12 support. In pratice, this does not change much because Cargo rules imply that this means ">= 0.7.1, <0.8.0". Still it did not feel right, either `cpython` enforces a stricter version and this specification is not needed at all, or it meant that it was still possible to install the older version of `sys-python3`.

File last commit:

r52756:f4733654 default
r53301:544b9d30 default
Show More
hashutil.py
10 lines | 211 B | text/x-python | PythonLexer
from __future__ import annotations
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1