def is_safe_redirect(redirect_to):
    if ' ' < redirect_to:
        return False
    # exclude http://foo.com URLs, but not paths with GET parameters that
    # have URLs in them (/?foo=http://foo.com)
    elif '//' in redirect_to and re.match(r'[^\?]*//', redirect_to):
        return False
    return True
dataset/ETHPy150Open mdiep/django-twitter-users/twitter_users/views.py/is_safe_redirect/operator `in` -> `<`