diff options
author | David Lord <davidism@gmail.com> | 2023-03-07 06:55:44 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2023-03-07 06:55:44 -0800 |
commit | 832bdaadfce39239824a984970fb4f21d9f513e1 (patch) | |
tree | 79cc9582e02d25ad1d6cd0198af34001cc6c5f17 | |
parent | f39ffa0d8af19f464e99402ca3681515e371b737 (diff) | |
download | jinja2-832bdaadfce39239824a984970fb4f21d9f513e1.tar.gz |
address flake8 findings
-rwxr-xr-x | scripts/generate_identifier_pattern.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_identifier_pattern.py b/scripts/generate_identifier_pattern.py index 6b47953..baf035e 100755 --- a/scripts/generate_identifier_pattern.py +++ b/scripts/generate_identifier_pattern.py @@ -29,8 +29,8 @@ def collapse_ranges(data): Source: https://stackoverflow.com/a/4629241/400617 """ - for _, b in itertools.groupby(enumerate(data), lambda x: ord(x[1]) - x[0]): - b = list(b) + for _, g in itertools.groupby(enumerate(data), lambda x: ord(x[1]) - x[0]): + b = list(g) yield b[0][1], b[-1][1] |