parameters: (self, name)
docstring: Give an error if option |name| is not a valid IPv4 address.
docstring_summary: Give an error if option |name| is not a valid IPv4 address.
docstring_tokens: Give an error if option |name| is not a valid IPv4 address .
function: def _CheckValidIp(self, name):
      """Give an error if option |name| is not a valid IPv4 address."""
      value = getattr(self._options, name)
      if value:
        try:
          socket.inet_aton(value)
        except Exception:
          self._parser.error('Option --%s must be a valid IPv4 address.' % name)
function_tokens: def _CheckValidIp ( self , name ) : value = getattr ( self . _options , name ) if value : try : socket . inet_aton ( value ) except Exception : self . _parser . error ( 'Option --%s must be a valid IPv4 address.' % name )