From 481b5651df9bd160d4ff1f1ba471eead61a53252 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 15 Mar 2023 09:45:15 +1100 Subject: Fix some warnings from ruff. --- scripts/ScintillaData.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'scripts/ScintillaData.py') diff --git a/scripts/ScintillaData.py b/scripts/ScintillaData.py index 857da7dd5..044ecfb01 100644 --- a/scripts/ScintillaData.py +++ b/scripts/ScintillaData.py @@ -25,15 +25,15 @@ def FindCredits(historyFile, removeLinks=True): credits = [] stage = 0 with historyFile.open(encoding="utf-8") as f: - for l in f.readlines(): - l = l.strip() - if stage == 0 and l == "": + for line in f.readlines(): + line = line.strip() + if stage == 0 and line == "
": stage = 1 - elif stage == 1 and l == "
": + elif stage == 1 and line == "": stage = 2 - if stage == 1 and l.startswith(""): - credit = l[4:-5] - if removeLinks and ""): + credit = line[4:-5] + if removeLinks and "") name = end.split("<")[0] @@ -54,7 +54,7 @@ class ScintillaData: self.versionCommad = self.versionDotted.replace(".", ", ") + ', 0' with (scintillaRoot / "doc" / "index.html").open() as f: - self.dateModified = [l for l in f.readlines() if "Date.Modified" in l]\ + self.dateModified = [d for d in f.readlines() if "Date.Modified" in d]\ [0].split('\"')[3] # 20130602 # index.html, SciTE.html -- cgit v1.2.3