mercurial/templateutil.py
changeset 43474 70d42e2ad9b4
parent 43464 3e57809d3251
child 44589 fc1fa3a07af6
equal deleted inserted replaced
43473:14e374d4c9ee 43474:70d42e2ad9b4
    29 
    29 
    30 class TemplateNotFound(error.Abort):
    30 class TemplateNotFound(error.Abort):
    31     pass
    31     pass
    32 
    32 
    33 
    33 
    34 class wrapped(object):
    34 class wrapped(object):  # pytype: disable=ignored-metaclass
    35     """Object requiring extra conversion prior to displaying or processing
    35     """Object requiring extra conversion prior to displaying or processing
    36     as value
    36     as value
    37 
    37 
    38     Use unwrapvalue() or unwrapastype() to obtain the inner object.
    38     Use unwrapvalue() or unwrapastype() to obtain the inner object.
    39     """
    39     """
   106 
   106 
   107         A returned value must be serializable by templaterfilters.json().
   107         A returned value must be serializable by templaterfilters.json().
   108         """
   108         """
   109 
   109 
   110 
   110 
   111 class mappable(object):
   111 class mappable(object):  # pytype: disable=ignored-metaclass
   112     """Object which can be converted to a single template mapping"""
   112     """Object which can be converted to a single template mapping"""
   113 
   113 
   114     __metaclass__ = abc.ABCMeta
   114     __metaclass__ = abc.ABCMeta
   115 
   115 
   116     def itermaps(self, context):
   116     def itermaps(self, context):