

def __call__(self, request):
    auth = port.to_u('{0}:{1}').format(port.to_u(self.username), port.to_u(self.password))
    encoded = port.to_u(base64.b64encode(port.to_b(auth)), 'latin-1')
    header = 'Basic {0}'.format(self)
    request.headers['Authorization'] = header

dataset/ETHPy150Open ducksboard/libsaas/libsaas/filters/auth.py BasicAuth.__call__/VarMisuse@69/89 `encoded`->`self`