diff options
author | David Lord <davidism@gmail.com> | 2023-04-07 12:19:07 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2023-04-07 12:19:07 -0700 |
commit | 090a5a9e22a7888da93ead324b33b255d106a0c2 (patch) | |
tree | 5b61c244008b0793cb0ebb76dc8443d5d7a94959 | |
parent | 85e5ad85d10eaf119dc0f17f245118c9f78bb864 (diff) | |
download | jinja2-090a5a9e22a7888da93ead324b33b255d106a0c2.tar.gz |
fix flake8 bugbear error
-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..24de878 100755 --- a/scripts/generate_identifier_pattern.py +++ b/scripts/generate_identifier_pattern.py @@ -30,8 +30,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) - yield b[0][1], b[-1][1] + lb = list(b) + yield lb[0][1], lb[-1][1] def build_pattern(ranges): |