webpy/webpy — Issue #140: web.net.validipaddr('192 .168. 1.1 ') should be False (ip address with space)
Author: chuangbo
Created: 2012-02-14 09:14:19+00:00
State: open

' 192. 168. 1.2 ' is not a valid ip addr :)

Returns True if `address` is a valid IPv4 address.

>>> validipaddr('192.168.1.1')
True
>>> validipaddr('192.168.1.800')
False
>>> validipaddr('192.168.1')
False
>>> validipaddr('192 .168. 1.1 ')
False