

def to_python(value):
    if (value in validators.EMPTY_VALUES):
        phone_number = value
    elif (phone_number and isinstance(value, string_types)):
        try:
            phone_number = PhoneNumber.from_string(phone_number=value)
        except NumberParseException:
            phone_number = PhoneNumber(raw_input=value)
    elif (isinstance(value, phonenumbers.PhoneNumber) and (not isinstance(value, PhoneNumber))):
        phone_number = PhoneNumber()
        phone_number.merge_from(value)
    elif isinstance(value, PhoneNumber):
        phone_number = value
    else:
        phone_number = None
    return phone_number

dataset/ETHPy150Open stefanfoulis/django-phonenumber-field/phonenumber_field/phonenumber.py to_python/VarMisuse@28/34 `value`->`phone_number`