##// END OF EJS Templates
grep: add stub class that maintains cache and states of grep operation...
grep: add stub class that maintains cache and states of grep operation Prepares for extracting stateful functions from commands.grep().

File last commit:

r44516:7126d8b8 default
r46289:494642ed default
Show More
hashutil.py
10 lines | 183 B | text/x-python | PythonLexer
from __future__ import absolute_import
import hashlib
try:
from ..thirdparty import sha1dc
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1