aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/HeaderCheck.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-03-15 09:45:15 +1100
committerNeil <nyamatongwe@gmail.com>2023-03-15 09:45:15 +1100
commit481b5651df9bd160d4ff1f1ba471eead61a53252 (patch)
treed1fdb9642eaaef49eab6675dc816a7f7246f93b9 /scripts/HeaderCheck.py
parentf5b5b395e2c21c6c8a338a2b2641e3143534589c (diff)
downloadscintilla-mirror-481b5651df9bd160d4ff1f1ba471eead61a53252.tar.gz
Fix some warnings from ruff.
Diffstat (limited to 'scripts/HeaderCheck.py')
-rw-r--r--scripts/HeaderCheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/HeaderCheck.py b/scripts/HeaderCheck.py
index e24cfa1a9..2c953bf30 100644
--- a/scripts/HeaderCheck.py
+++ b/scripts/HeaderCheck.py
@@ -16,11 +16,11 @@ def HeaderFromIncludeLine(s):
def ExtractHeaders(file):
with file.open(encoding="cp437") as infile:
- return [HeaderFromIncludeLine(l) for l in infile if IsHeader(l)]
+ return [HeaderFromIncludeLine(h) for h in infile if IsHeader(h)]
def ExtractWithPrefix(file, prefix):
with file.open(encoding="cp437") as infile:
- return [l.strip()[len(prefix):] for l in infile if l.startswith(prefix)]
+ return [s.strip()[len(prefix):] for s in infile if s.startswith(prefix)]
def ExcludeName(name, excludes):
return any(exclude in name for exclude in excludes)