forked from Mirror/pmbootstrap
pmb.aportgen.core: Combine startswith(...) calls into one (MR 2537)
This is equivalent and simpler. See https://docs.astral.sh/ruff/rules/multiple-starts-ends-with
This commit is contained in:
parent
00c670ffda
commit
59227a333e
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ def rewrite(
|
||||||
skip_in_func = False
|
skip_in_func = False
|
||||||
for line in handle.readlines():
|
for line in handle.readlines():
|
||||||
# Skip maintainer/contributor
|
# Skip maintainer/contributor
|
||||||
if line.startswith("# Maintainer") or line.startswith("# Contributor"):
|
if line.startswith(("# Maintainer", "# Contributor")):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Replace functions
|
# Replace functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue