Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
ba72408c
Commit
ba72408c
authored
8 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
moved hashIt from generator to dune.common.hashit so that generator is not
included for this function
parent
f7bf76b8
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!790
Feature/add python bindings
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
hashit.py
+7
-0
7 additions, 0 deletions
hashit.py
with
8 additions
and
0 deletions
CMakeLists.txt
+
1
−
0
View file @
ba72408c
...
...
@@ -3,6 +3,7 @@ add_python_targets(common
compatibility
module
checkconfiguration
hashit
project
)
...
...
This diff is collapsed.
Click to expand it.
hashit.py
0 → 100644
+
7
−
0
View file @
ba72408c
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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment