Skip to content
Snippets Groups Projects
Commit ba72408c authored by Andreas Dedner's avatar Andreas Dedner
Browse files

moved hashIt from generator to dune.common.hashit so that generator is not

included for this function
parent f7bf76b8
Branches
Tags
1 merge request!790Feature/add python bindings
......@@ -3,6 +3,7 @@ add_python_targets(common
compatibility
module
checkconfiguration
hashit
project
)
......
import hashlib
def hashIt(typeName):
if hasattr(typeName, '__iter__'):
return hashlib.md5("".join(t for t in typeName).encode('utf-8')).hexdigest()
else:
return hashlib.md5(typeName.encode('utf-8')).hexdigest()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment