# HG changeset patch # User Yuya Nishihara # Date 2018-03-17 13:30:25 # Node ID 676664592313716bdedb0d3e137efc45b08cc0c2 # Parent 11d51e5188088e86043029fe62023cdd45d41f5b templater: mark .joinfmt as a private attribute diff --git a/mercurial/templateutil.py b/mercurial/templateutil.py --- a/mercurial/templateutil.py +++ b/mercurial/templateutil.py @@ -87,7 +87,7 @@ class hybrid(wrapped): self._gen = gen # generator or function returning generator self._values = values self._makemap = makemap - self.joinfmt = joinfmt + self._joinfmt = joinfmt self.keytype = keytype # hint for 'x in y' where type(x) is unresolved def itermaps(self, context): @@ -97,7 +97,7 @@ class hybrid(wrapped): def join(self, context, mapping, sep): # TODO: switch gen to (context, mapping) API? - return joinitems((self.joinfmt(x) for x in self._values), sep) + return joinitems((self._joinfmt(x) for x in self._values), sep) def show(self, context, mapping): # TODO: switch gen to (context, mapping) API?