mirror of
https://github.com/actions/python-versions.git
synced 2025-12-16 15:58:16 +00:00
Update python-modules.py
This commit is contained in:
@@ -309,7 +309,9 @@ def check_missing_modules(expected_modules):
|
|||||||
importlib.import_module(module)
|
importlib.import_module(module)
|
||||||
except:
|
except:
|
||||||
missing.append(module)
|
missing.append(module)
|
||||||
return missing
|
return missing
|
||||||
|
|
||||||
|
missing_modules = check_missing_modules(x for x in standard_library if x not in excluded_modules)
|
||||||
if missing_modules:
|
if missing_modules:
|
||||||
print('The following modules are missing:')
|
print('The following modules are missing:')
|
||||||
for module in missing_modules:
|
for module in missing_modules:
|
||||||
|
|||||||
Reference in New Issue
Block a user