mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix build script error.because starting with Python 3.9, the util module was moved from importlib to a separate top-level module called importlib.util. Therefore, if you are using Python 3.9 or later and you receive an AttributeError stating that module 'importlib' has no attribute 'util', it is likely due to a compatibility issue with your code. You can fix this issue by updating your code to import importlib.util directly (#30796)
This commit is contained in:
parent
dd9366bfe7
commit
53b0fa827d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from __future__ import absolute_import, print_function, unicode_literals
|
|||
import argparse
|
||||
import codecs
|
||||
import errno
|
||||
import importlib
|
||||
import importlib.util
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue