Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
3cb3c2fd
Commit
3cb3c2fd
authored
Jul 20, 2022
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code cleanups after
3a373e2c
.
parent
3a373e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+5
-3
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
3cb3c2fd
...
...
@@ -4,7 +4,8 @@ import cython
cython
.
declare
(
PyrexTypes
=
object
,
Naming
=
object
,
ExprNodes
=
object
,
Nodes
=
object
,
Options
=
object
,
UtilNodes
=
object
,
LetNode
=
object
,
LetRefNode
=
object
,
TreeFragment
=
object
,
EncodedString
=
object
,
error
=
object
,
warning
=
object
,
copy
=
object
,
_unicode
=
object
)
error
=
object
,
warning
=
object
,
copy
=
object
,
hashlib
=
object
,
sys
=
object
,
_unicode
=
object
)
import
copy
import
hashlib
...
...
@@ -2132,10 +2133,11 @@ def _calculate_pickle_checksums(member_names):
for
algo_name
in
[
'md5'
,
'sha256'
,
'sha1'
]:
try
:
mkchecksum
=
getattr
(
hashlib
,
algo_name
)
checksum
s
.
append
(
'0x'
+
mkchecksum
(
member_names_string
,
**
hash_kwargs
).
hexdigest
()[:
7
]
)
checksum
=
mkchecksum
(
member_names_string
,
**
hash_kwargs
).
hexdigest
(
)
except
(
AttributeError
,
ValueError
):
# The algorithm (i.e. MD5) might not be there at all, or might be blocked at runtime
# The algorithm (i.e. MD5) might not be there at all, or might be blocked at runtime
.
continue
checksums
.
append
(
'0x'
+
checksum
[:
7
])
return
checksums
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment