# HG changeset patch # User Augie Fackler # Date 2019-11-06 22:46:12 # Node ID 3e57809d3251bef33ffab47d340c22cfa6437f22 # Parent 271af23d01a98ecf87c30c156535fe20be129620 templateutil: fix a missing ABCMeta assignment Caught by pytype. Differential Revision: https://phab.mercurial-scm.org/D7262 diff --git a/mercurial/templateutil.py b/mercurial/templateutil.py --- a/mercurial/templateutil.py +++ b/mercurial/templateutil.py @@ -111,6 +111,8 @@ class wrapped(object): class mappable(object): """Object which can be converted to a single template mapping""" + __metaclass__ = abc.ABCMeta + def itermaps(self, context): yield self.tomap(context)