aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ScintillaData.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/ScintillaData.py
parentf5b5b395e2c21c6c8a338a2b2641e3143534589c (diff)
downloadscintilla-mirror-481b5651df9bd160d4ff1f1ba471eead61a53252.tar.gz
Fix some warnings from ruff.
Diffstat (limited to 'scripts/ScintillaData.py')
-rw-r--r--scripts/ScintillaData.py16
1 files changed, 8 insertions, 8 deletions
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 == "<table>":
+ for line in f.readlines():
+ line = line.strip()
+ if stage == 0 and line == "<table>":
stage = 1
- elif stage == 1 and l == "</table>":
+ elif stage == 1 and line == "</table>":
stage = 2
- if stage == 1 and l.startswith("<td>"):
- credit = l[4:-5]
- if removeLinks and "<a" in l:
+ if stage == 1 and line.startswith("<td>"):
+ credit = line[4:-5]
+ if removeLinks and "<a" in line:
title, _a, rest = credit.partition("<a href=")
urlplus, _bracket, end = rest.partition(">")
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