From d762e7eedc61facfd5d4d572b76f2b68dee711a1 Mon Sep 17 00:00:00 2001 From: Per von Zweigbergk Date: Fri, 8 Sep 2023 22:31:55 +0200 Subject: [PATCH] Fix up some wonky code formatting --- netbox/utilities/forms/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/utilities/forms/utils.py b/netbox/utilities/forms/utils.py index df7030f38..0bdf48740 100644 --- a/netbox/utilities/forms/utils.py +++ b/netbox/utilities/forms/utils.py @@ -99,8 +99,7 @@ def expand_alphanumeric_pattern(pattern): # our option_matrix. listerator = cycle([lambda part: [part], parse_alphanumeric_range]) 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: # 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