You've already forked pyinstxtractor
mirror of
https://github.com/extremecoders-re/pyinstxtractor.git
synced 2025-08-03 00:25:51 +08:00
Bugfix on Python3 .8 AttributeError: module 'importlib' has no attribute 'util'
This commit is contained in:
@@ -93,8 +93,8 @@ from uuid import uuid4 as uniquename
|
|||||||
|
|
||||||
# imp is deprecated in Python3 in favour of importlib
|
# imp is deprecated in Python3 in favour of importlib
|
||||||
if sys.version_info.major == 3:
|
if sys.version_info.major == 3:
|
||||||
import importlib
|
from importlib.util import MAGIC_NUMBER
|
||||||
pyc_magic = importlib.util.MAGIC_NUMBER
|
pyc_magic = MAGIC_NUMBER
|
||||||
else:
|
else:
|
||||||
import imp
|
import imp
|
||||||
pyc_magic = imp.get_magic()
|
pyc_magic = imp.get_magic()
|
||||||
|
Reference in New Issue
Block a user