Skip to content

Commit

Permalink
fixed docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-forte-elastic committed Oct 30, 2023
1 parent e34e199 commit 3aba466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ def str_presenter(dumper, data):


def get_ipaddress(ipaddr_string):
"""Get an ipaddress ip_address object from a string containing an ipaddress."""
"""Get an ip_address object from a string containing an ip address."""
if py_version == 2:
ipaddr_string = ipaddr_string.decode("utf-8") # noqa: F821
return ipaddress.ip_address(ipaddr_string)


def get_subnet(cidr_string, strict=False):
"""Get an ipaddress ip_network object from a string containing an cidr range."""
"""Get an ip_network object from a string containing an cidr range."""
if py_version == 2:
cidr_string = cidr_string.decode("utf-8") # noqa: F821
return ipaddress.ip_network(cidr_string, strict=strict)
Expand Down

0 comments on commit 3aba466

Please sign in to comment.