We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc6c0a commit 545b825Copy full SHA for 545b825
graalpython/com.oracle.graal.python.frozen/freeze_modules.py
@@ -7,7 +7,6 @@
7
"""
8
9
from collections import namedtuple
10
-import hashlib
11
import marshal
12
import ntpath
13
import os
@@ -16,6 +15,9 @@
16
15
import textwrap
17
import shutil
18
+from _sha256 import sha256
19
+
20
21
FROZEN_ONLY = os.path.join(os.path.dirname(__file__), "flag.py")
22
23
# These are modules that get frozen.
@@ -369,7 +371,7 @@ def _iter_sources(modules):
369
371
def _get_checksum(filename):
370
372
with open(filename, "rb") as infile:
373
contents = infile.read()
- m = hashlib.sha256()
374
+ m = sha256()
375
m.update(contents)
376
return m.hexdigest()
377
0 commit comments