Skip to content
Myr

fix flake8 bugbear error

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 85e5ad8 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:scripts/generate_identifier_pattern.py+2 added-2 removed
28 unmodified lines
2930 Source: https://stackoverflow.com/a/4629241/40061731 """32 for _, b in itertools.groupby(enumerate(data), lambda x: ord(x[1]) - x[0]):33 b = list(b)34 yield b[0][1], b[-1][1]33 lb = list(b)34 yield lb[0][1], lb[-1][1]353637def build_pattern(ranges):38 """Output the regex pattern for ranges of characters.
36 unmodified lines