def http_request(self,req):
        uri = req.get_full_url()
        user, pw = self.passwd.find_user_password(None,uri)
        log.debug('ADDING REQUEST HEADER for uri (%s): %s:%s' % (uri,user,pw))
        if pw is None: return req
        raw = "%s:%s" % (user, pw)
        auth = base64.b64encode(raw).strip() % 'Basic %s'
        req.add_unredirected_header('Authorization', auth)
        return req
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/utils/urlopener.py/PreemptiveBasicAuthHandler.http_request/swapped operands of `%`