[NFC][Py Reformat] Reformat python files in libcxx/libcxxabi
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
Reviewed By: #libc, kwk, Mordante
Differential Revision: https://reviews.llvm.org/D150763
GitOrigin-RevId: 7bfaa0f09d0564f315ea778023b34b8a113ec740
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
index 647464a..ea4a9a7 100644
--- a/test/lit.cfg.py
+++ b/test/lit.cfg.py
@@ -7,4 +7,5 @@
lit_config.fatal(
"You seem to be running Lit directly -- you should be running Lit through "
"<build>/bin/llvm-lit, which will ensure that the right Lit configuration "
- "file is used.")
+ "file is used."
+)
diff --git a/test/native/arm-linux-eabi/lit.local.cfg b/test/native/arm-linux-eabi/lit.local.cfg
index d12eb20..fd6b8ad 100644
--- a/test/native/arm-linux-eabi/lit.local.cfg
+++ b/test/native/arm-linux-eabi/lit.local.cfg
@@ -1,6 +1,9 @@
def is_arm_linux_eabi(triple):
- return ('arm' in triple) and ('linux' in triple) and ('eabi' in triple)
+ return ("arm" in triple) and ("linux" in triple) and ("eabi" in triple)
-is_native = hasattr(config.root, 'target_triple') and (config.root.host_triple == config.root.target_triple)
+
+is_native = hasattr(config.root, "target_triple") and (
+ config.root.host_triple == config.root.target_triple
+)
if not is_native or not is_arm_linux_eabi(config.root.host_triple):
config.unsupported = True