diff options
author | John Moon <quic_johmoo@quicinc.com> | 2023-10-17 16:41:24 -0700 |
---|---|---|
committer | John Moon <quic_johmoo@quicinc.com> | 2024-01-02 18:34:10 +0000 |
commit | 7c89e2f34da3105947984062feb2e61d3b3225bc (patch) | |
tree | 75fdfa6982b17f4a3e3ed5c81fb2b709666f7f62 | |
parent | 591d1eb6d7550d5136b1f6a9b77350aa3a07da2a (diff) | |
download | build-7c89e2f34da3105947984062feb2e61d3b3225bc.tar.gz |
kleaf: workspace_status_stamp.py: Fix pathlib.path error
Currently, there are two places where "pathlib.path" is used instead
of the correct "pathlib.Path". This causes the following error when
building with --ignore_missing_projects:
AttributeError: module 'pathlib' has no attribute 'path'. Did you mean: 'Path'?
Fix this by changing "pathlib.path" to "pathlib.Path".
Bug: 306026132
Change-Id: I8ecdec3b48d7438a3a953944f629b462a7c88536
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
(cherry picked from commit 224cf84e94caf3db491139ce2dac462d97a833e3)
-rw-r--r-- | kleaf/workspace_status_stamp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kleaf/workspace_status_stamp.py b/kleaf/workspace_status_stamp.py index d2f6266..66f3d9f 100644 --- a/kleaf/workspace_status_stamp.py +++ b/kleaf/workspace_status_stamp.py @@ -293,7 +293,7 @@ class Stamp(object): all_projects |= set(self.projects) if self.ignore_missing_projects: - all_projects = filter(pathlib.path.is_dir, all_projects) + all_projects = filter(pathlib.Path.is_dir, all_projects) scmversion_map = {} for project in all_projects: @@ -346,7 +346,7 @@ class Stamp(object): all_projects |= set(self.projects) if self.ignore_missing_projects: - all_projects = filter(pathlib.path.is_dir, all_projects) + all_projects = filter(pathlib.Path.is_dir, all_projects) return { proj: self.async_get_source_date_epoch(proj) |