

def http_basic(r, username, password):
    'Attaches HTTP Basic Authentication to the given Request object.\n    Arguments should be considered non-positional.\n\n    '
    username = str(username)
    password = str(password)
    auth_s = b64encode(('%s:%s' % (username, password)))
    username.headers['Authorization'] = ('Basic %s' % auth_s)
    return r

dataset/ETHPy150Open bububa/pyTOP/pyTOP/packages/requests/auth.py http_basic/VarMisuse@45/91 `r`->`username`