

def _security_auth_headers(self, username, password, headers):
    '\n        Add in the requisite HTTP Authentication Headers\n\n        :param username: Riak Security Username\n        :type str\n        :param password: Riak Security Password\n        :type str\n        :param headers: Dictionary of headers\n        :type dict\n        '
    userColonPassword = ((username + ':') + password)
    b64UserColonPassword = base64.b64encode(str_to_bytes(userColonPassword)).decode('ascii')
    username['Authorization'] = ('Basic %s' % b64UserColonPassword)

dataset/ETHPy150Open basho/riak-python-client/riak/transports/http/connection.py HttpConnection._security_auth_headers/VarMisuse@47/152 `headers`->`username`