mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
fixed PEP8 style
This commit is contained in:
parent
06118d7360
commit
1f741762c8
@ -61,6 +61,7 @@ def parse_numeric_range(string, base=10):
|
||||
values.extend(range(begin, end))
|
||||
return list(set(values))
|
||||
|
||||
|
||||
def expand_numeric_pattern(string):
|
||||
"""
|
||||
Expand a numeric pattern into a list of strings. Examples:
|
||||
@ -76,6 +77,7 @@ def expand_numeric_pattern(string):
|
||||
else:
|
||||
yield "{}{}{}".format(lead, i, remnant)
|
||||
|
||||
|
||||
def expand_ipaddress_pattern(string, family):
|
||||
"""
|
||||
Expand an IP address pattern into a list of strings. Examples:
|
||||
|
Loading…
Reference in New Issue
Block a user