Message ID | 20250320165448.977193-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | 1ad894e2e13e8a3b24f317914dc3e05da40878b3 |
Headers | show |
Series | Revert "bblayers/query: Fix using "removeprefix" string method" | expand |
diff --git a/lib/bblayers/query.py b/lib/bblayers/query.py index 9b2e081cfd..eb7cb465b4 100644 --- a/lib/bblayers/query.py +++ b/lib/bblayers/query.py @@ -145,8 +145,7 @@ skipped recipes will also be listed, with a " (skipped)" suffix. skiplist = list(self.tinfoil.cooker.skiplist_by_mc[mc].keys()) if mc: - mcspec = f'mc:{mc}:' - skiplist = [s[len(mcspec):] if s.startswith(mcspec) else s for s in skiplist] + skiplist = [s.removeprefix(f'mc:{mc}:') for s in skiplist] for fn in skiplist: recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_')