changeset 37329:676664592313

templater: mark .joinfmt as a private attribute
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 Mar 2018 22:30:25 +0900
parents 11d51e518808
children db06c4bb2158
files mercurial/templateutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templateutil.py	Mon Mar 19 20:32:06 2018 +0900
+++ b/mercurial/templateutil.py	Sat Mar 17 22:30:25 2018 +0900
@@ -87,7 +87,7 @@
         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 @@
 
     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?