process has an unreachable return since 523625e46760 (class engine in mercurial/templater.py)

Simon Heimberg simohe at besonet.ch
Sun Sep 30 02:41:32 CDT 2012


The 2nd return was introduced in 523625e46760. Not sure if this one or the
original one should be kept.

Code of function process from class engine: 
  def process(self, t, mapping):
           '''Perform expansion. t is name of map element to expand.
           mapping contains added elements for use during expansion. Is a
           generator.'''
           return _flatten(func(self, mapping, data) for func, data in
                            self._load(t))
           return _flatten(runtemplate(self, mapping, self._load(t)))


Greetings,
Simon


More information about the Mercurial-devel mailing list