Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
9cf44ed3
Commit
9cf44ed3
authored
Aug 31, 2020
by
Thanassis Tsiodras
Browse files
Fix for
#5
by Arnaud Moura.
parent
6363b21f
Pipeline
#2263
passed with stage
in 3 minutes and 8 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
dmt/commonPy/asnParser.py
View file @
9cf44ed3
...
...
@@ -403,7 +403,8 @@ def ParseAsnFileList(listOfFilenames: List[str]) -> None: # pylint: disable=inv
if
projectCache
is
not
None
:
filehash
=
hashlib
.
md5
()
for
each
in
sorted
(
listOfFilenames
):
filehash
.
update
(
open
(
each
).
read
().
encode
(
'utf-8'
))
filehash
.
update
(
open
(
each
,
"r"
,
encoding
=
"utf-8"
).
read
().
encode
(
'utf-8'
))
# also hash the file path: it is used in the AST in XML, so it is
# not enough to hash the content of the ASN.1 files, as two sets
# of files may have the same hash, that would lead to different XML
...
...
Thanassis Tsiodras
@ttsiodras
mentioned in issue
#5 (closed)
·
Sep 01, 2020
mentioned in issue
#5 (closed)
mentioned in issue #5
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment