From d7a108ff06a981e7151d0a7bc82891ce93ec43a1 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 18 Sep 2012 13:37:41 -0500 Subject: [PATCH] fixed recent typo, thanks Christian --- VERSION | 2 +- gluon/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a2d13ead..f287dcd2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-18 13:35:42) stable +Version 2.0.9 (2012-09-18 13:37:38) stable diff --git a/gluon/utils.py b/gluon/utils.py index 92e58010..06d9c9b1 100644 --- a/gluon/utils.py +++ b/gluon/utils.py @@ -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