Fix up some wonky code formatting

This commit is contained in:
Per von Zweigbergk 2023-09-08 22:31:55 +02:00
parent 735d1cacf4
commit d762e7eedc

View File

@ -99,8 +99,7 @@ def expand_alphanumeric_pattern(pattern):
# our option_matrix. # our option_matrix.
listerator = cycle([lambda part: [part], parse_alphanumeric_range]) listerator = cycle([lambda part: [part], parse_alphanumeric_range])
try: try:
option_matrix = [to_options(part) for to_options, part in zip(listerator, pattern_parts) option_matrix = [to_options(part) for to_options, part in zip(listerator, pattern_parts)]
]
except ValueError as e: except ValueError as e:
# Another wart for legacy compatibility. A previous implementation of this function throws ValueError # Another wart for legacy compatibility. A previous implementation of this function throws ValueError
# in some cases, but forms.ValidationError in others, even though a generic utility function has no # in some cases, but forms.ValidationError in others, even though a generic utility function has no