def updateConfig(self, cfg, auth = False):
        port = (auth and self.authPort) or self.port
        cfg.proxy = { 'http' : 'http://localhost:%d/' % port,
                      'https' : 'https://localhost:%d/' % port,
                    }
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/HTTPProxy.updateConfig/original