Commit 9cf44ed3 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Fix for #5 by Arnaud Moura.

parent 6363b21f
Pipeline #2263 passed with stage
in 3 minutes and 8 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment