aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/GenerateCaseConvert.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/GenerateCaseConvert.py
parentf5b5b395e2c21c6c8a338a2b2641e3143534589c (diff)
downloadscintilla-mirror-481b5651df9bd160d4ff1f1ba471eead61a53252.tar.gz
Fix some warnings from ruff.
Diffstat (limited to 'scripts/GenerateCaseConvert.py')
-rw-r--r--scripts/GenerateCaseConvert.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/GenerateCaseConvert.py b/scripts/GenerateCaseConvert.py
index 3c0193ecb..50f992ae6 100644
--- a/scripts/GenerateCaseConvert.py
+++ b/scripts/GenerateCaseConvert.py
@@ -21,11 +21,11 @@ import itertools, string, sys
from FileGenerator import Regenerate
-def contiguousRanges(l, diff):
- # l is s list of lists
+def contiguousRanges(ll, diff):
+ # ll is a list of lists
# group into lists where first element of each element differs by diff
- out = [[l[0]]]
- for s in l[1:]:
+ out = [[ll[0]]]
+ for s in ll[1:]:
if s[0] != out[-1][-1][0] + diff:
out.append([])
out[-1].append(s)
@@ -99,7 +99,7 @@ def groupRanges(symmetrics):
rangeCoverage = list(flatten([range(r[0], r[0]+r[2]*r[3], r[3]) for r in rangeGroups]))
- nonRanges = [(l, u) for l, u, _d in symmetrics if l not in rangeCoverage]
+ nonRanges = [(x, u) for x, u, _d in symmetrics if x not in rangeCoverage]
return rangeGroups, nonRanges