fixed recent typo, thanks Christian

This commit is contained in:
mdipierro
2012-09-18 13:37:41 -05:00
parent 5ed41285c0
commit d7a108ff06
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-09-18 13:35:42) stable
Version 2.0.9 (2012-09-18 13:37:38) stable
+1 -1
View File
@@ -169,7 +169,7 @@ def is_valid_ip_address(address):
return False
else: # try validate using Regex
match = REGEX_IPv4.match(address)
if match and all(0<=int(math.group(i))<256 for i in (1,2,3,4)):
if match and all(0<=int(match.group(i))<256 for i in (1,2,3,4)):
return True
return False
elif hasattr(socket,'inet_pton'): # assume IPv6, try using the OS