##// END OF EJS Templates
statprof: with Python 3.12, lineno is (more) often None...
statprof: with Python 3.12, lineno is (more) often None test-profile.t failed with errors like: TypeError: %d format: a real number is required, not NoneType statprof.py already handled None values as -1 in some cases. Do the same in more cases.

File last commit:

r49730:6000f5b2 default
r51230:972f3e5c stable
Show More
hashutil.py
8 lines | 175 B | text/x-python | PythonLexer
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1