diff --git a/nix/build-all.py b/nix/build-all.py index 0d3b6b4b43..1b99b7bb51 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -573,7 +573,7 @@ def build_dependency( ) except Exception as e: print("-" * 70) - print(open(os.path.join(extract_dir, 'hdf5.log'))) + print(open(os.path.join(extract_dir, "hdf5.log"))) print("-" * 70) raise e run([tar, "-xf", kwargs["ctest_result"] + ".tar.gz"], cwd=os.path.join(extract_dir, "build")) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index cc70e85374..6cfd7d3fb4 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -362,9 +362,7 @@ def log_internal_cpp_errors( l.decode("ascii", errors="ignore").strip() for l in lines if l.strip().startswith(f"#{instid[0]}".encode("ascii")) - and re.sub(r"\s+".encode("ascii"), b"", l).startswith( - f"#{instid[0]}=".encode("ascii") - ) + and re.sub(r"\s+".encode("ascii"), b"", l).startswith(f"#{instid[0]}=".encode("ascii")) ), None, )