From 1e08f8e0507b6b6b1f4416a9a22cf5c28beaba93 Mon Sep 17 00:00:00 2001 From: Chris Sauer Date: Fri, 28 Jun 2024 00:41:10 -0700 Subject: [PATCH] Restore python 3.8 support Fixes https://github.com/hedronvision/bazel-compile-commands-extractor/issues/184 --- refresh.template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refresh.template.py b/refresh.template.py index 3b33701..194f365 100644 --- a/refresh.template.py +++ b/refresh.template.py @@ -507,7 +507,7 @@ def _file_is_in_main_workspace_and_not_external(file_str: str): # some/file.h, but not external/some/file.h # also allows for things like bazel-out/generated/file.h - if file_path.is_relative_to(pathlib.PurePath("external")): + if _is_relative_to(file_path, pathlib.PurePath("external")): return False # ... but, ignore files in e.g. bazel-out//bin/external/