Validate an IPv4 address.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|"""IP simple validation in response to blog post http://goo.gl/L9cKh"""|
|bytes = [int(e) for e in value.split('.') if 0 <= int(e) <= 255)]|
|return len(bytes) == 4|