Skip to content
Snippets Groups Projects
Unverified Commit 5d7c0ec3 authored by Sergio Oliveira Campos's avatar Sergio Oliveira Campos
Browse files

Fixed typo

parent 5643cfc2
No related branches found
No related tags found
No related merge requests found
...@@ -321,7 +321,7 @@ def is_valid_port(port): ...@@ -321,7 +321,7 @@ def is_valid_port(port):
def is_ipv4_addr(ipaddr): def is_ipv4_addr(ipaddr):
"""Test if figen IP address is a valid IPv4 address.""" """Test if given IP address is a valid IPv4 address."""
try: try:
socket.inet_pton(socket.AF_INET, ipaddr) socket.inet_pton(socket.AF_INET, ipaddr)
except socket.error: except socket.error:
...@@ -330,7 +330,7 @@ def is_ipv4_addr(ipaddr): ...@@ -330,7 +330,7 @@ def is_ipv4_addr(ipaddr):
def is_ipv6_addr(ipaddr): def is_ipv6_addr(ipaddr):
"""Test if figen IP address is a valid IPv6 address.""" """Test if given IP address is a valid IPv6 address."""
try: try:
socket.inet_pton(socket.AF_INET6, ipaddr) socket.inet_pton(socket.AF_INET6, ipaddr)
except socket.error: except socket.error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment