Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-dev-tools
Commits
20fdda2d
Commit
20fdda2d
authored
Feb 5, 2021
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
check_spelling: fix cache hashing (it wasn't working at all)
parent
0ec3e26c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_source/check_spelling.py
+5
-1
5 additions, 1 deletion
check_source/check_spelling.py
with
5 additions
and
1 deletion
check_source/check_spelling.py
+
5
−
1
View file @
20fdda2d
#!/usr/bin/env python3
# ##### BEGIN GPL LICENSE BLOCK #####
# ##### BEGIN GPL LICENSE BLOCK #####
#
#
# This program is free software; you can redistribute it and/or
# This program is free software; you can redistribute it and/or
...
@@ -66,7 +68,9 @@ def hash_of_file_and_len(fp):
...
@@ -66,7 +68,9 @@ def hash_of_file_and_len(fp):
import
hashlib
import
hashlib
with
open
(
fp
,
'
rb
'
)
as
fh
:
with
open
(
fp
,
'
rb
'
)
as
fh
:
data
=
fh
.
read
()
data
=
fh
.
read
()
return
hashlib
.
sha512
().
digest
(),
len
(
data
)
m
=
hashlib
.
sha512
()
m
.
update
(
data
)
return
m
.
digest
(),
len
(
data
)
import
re
import
re
...
...
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
sign in
to comment