# HG changeset patch # User Pierre-Yves David # Date 2017-07-01 19:57:17 # Node ID a0068f49b5f639d60f46589415c82ae7defc4891 # Parent be723e2afd3dfb3d9670c45dc44adca141560158 zeroconf: blindly forward extra argument to the core config method The new default value handling is simpler if we let the original function handle everything. diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py --- a/hgext/zeroconf/__init__.py +++ b/hgext/zeroconf/__init__.py @@ -167,12 +167,12 @@ def getzcpaths(): value.properties.get("path", "/")) yield "zc-" + name, url -def config(orig, self, section, key, default=None, untrusted=False): +def config(orig, self, section, key, *args, **kwargs): if section == "paths" and key.startswith("zc-"): for name, path in getzcpaths(): if name == key: return path - return orig(self, section, key, default, untrusted) + return orig(self, section, key, *args, **kwargs) def configitems(orig, self, section, *args, **kwargs): repos = orig(self, section, *args, **kwargs)