This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black`. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Differential Revision: https://reviews.llvm.org/D150782
10 lines
365 B
INI
10 lines
365 B
INI
# TODO: This tool requires PyYAML, which is not yet a required build/test
|
|
# dependency. Remove this exclusion once it is a required dep.
|
|
|
|
# Since both lit and the python bindings use the same python interpreter,
|
|
# we can just check whether yaml can be imported here and exclude if not.
|
|
try:
|
|
import yaml
|
|
except ModuleNotFoundError:
|
|
config.unsupported = True
|