def INT(value):
 if (value is None):
  raise ValueError(u'None is not a valid integer')
 return int(value)

def INT ( value ) : if ( value is None ) : raise ValueError ( u'None is not a valid integer' ) return int ( value )
converts a value that matches [+-]?d+ into and integer .