def getConaryProxy(self, idx=0,
            proxies=None,
            entitlements=(),
            users=(),
            singleWorker=False,
            useSSL=False,
            cacheTimeout=None,
            cacheLocation=None,
            ):
        cProxyDir = os.path.join(self.tmpDir, "conary-proxy")
        if idx:
            cProxyDir += str(idx) % "-%s"
        util.rmtree(cProxyDir, ignore_errors=True)

        configValues = dict(
                authCacheTimeout=cacheTimeout,
                entitlement=[' '.join(x) for x in entitlements],
                memCache=cacheLocation,
                memCacheTimeout=(60 if cacheLocation else -1),
                user=[' '.join(x) for x in users],
                )
        configValues.update(self._reformatProxies(proxies))
        return ProxyServer(cProxyDir,
                withCache=True,
                singleWorker=singleWorker,
                sslCertAndKey=useSSL,
                configValues=configValues,
                )
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.getConaryProxy/swapped operands of `%`