Skip to content

Commit

Permalink
one more try
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Aug 29, 2023
1 parent 0cf009a commit ced1e98
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions planemo/autopygen/source_file_parsing/constants.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# stdlib_module_names is only available from python 3.10
# the inner try-except is essentially needed for mypy
# since we assume that stdlib-list is available
try:
if sys.version_info >= (3, 10):
from sys import stdlib_module_names
except ImportError:
try:
from stdlib_list import stdlib_list
stdlib_module_names = stdlib_list()
except ImportError:
# Handle the case where stdlib_list is not available
stdlib_module_names = []
else:
from stdlib_list import stdlib_list

stdlib_module_names = stdlib_list()

WARNING_STRING = "##!_FIXME_!##"

Expand Down

0 comments on commit ced1e98

Please sign in to comment.