def get_from_postcode(postcode, distance):
    """
    Request all postcode data within `distance` miles of `postcode`.

    :param postcode: the postcode to search for. The postcode may 
                     contain spaces (they will be removed).

    :param distance: distance in miles to `postcode`.

    :returns: a list of dicts containing postcode data within the 
              specified distance or `None` if `postcode` is not valid.
    """
    postcode = quote(postcode.replace(' ', ''))
    return _get_from(distance, 'postcode=%s' % postcode)
def get_from_postcode ( postcode , distance ) : postcode = quote ( postcode . replace ( ' ' , '' ) ) return _get_from ( distance , 'postcode=%s' % postcode )
Request all postcode data within `distance` miles of `postcode`.

    :param postcode: the postcode to search for. The postcode may 
                     contain spaces (they will be removed).

    :param distance: distance in miles to `postcode`.

    :returns: a list of dicts containing postcode data within the 
              specified distance or `None` if `postcode` is not valid.