mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
binman: Update entry_test to support Python 3
The reload() function is in a different place in Python 3. Update the code to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -41,6 +41,10 @@ class TestEntry(unittest.TestCase):
|
|||||||
del sys.modules['importlib']
|
del sys.modules['importlib']
|
||||||
global entry
|
global entry
|
||||||
if entry:
|
if entry:
|
||||||
|
if sys.version_info[0] >= 3:
|
||||||
|
import importlib
|
||||||
|
importlib.reload(entry)
|
||||||
|
else:
|
||||||
reload(entry)
|
reload(entry)
|
||||||
else:
|
else:
|
||||||
import entry
|
import entry
|
||||||
|
Reference in New Issue
Block a user