You've already forked pyinstxtractor
mirror of
https://github.com/extremecoders-re/pyinstxtractor.git
synced 2025-08-02 16:24:45 +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
|
||||
if sys.version_info.major == 3:
|
||||
import importlib
|
||||
pyc_magic = importlib.util.MAGIC_NUMBER
|
||||
from importlib.util import MAGIC_NUMBER
|
||||
pyc_magic = MAGIC_NUMBER
|
||||
else:
|
||||
import imp
|
||||
pyc_magic = imp.get_magic()
|
||||
|
Reference in New Issue
Block a user