def _canonicalize_endpoint(self, protocol, endpoint):
    if (protocol == 'sms'):
        return re.sub('[^0-9]*', '', endpoint)
    return endpoint
def _canonicalize_endpoint(self, protocol, endpoint):
    if (protocol == 'sms'):
        return re.sub('[^0-9]*', , endpoint)
    return endpoint