[Updated] [+ ] D8807: formatter: inline a variable assigned from `templater.templater.frommapfile`

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Jul 29 18:24:05 UTC 2020


martinvonz updated this revision to Diff 22146.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8807?vs=22139&id=22146

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8807/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8807

AFFECTED FILES
  mercurial/formatter.py

CHANGE DETAILS

diff --git a/mercurial/formatter.py b/mercurial/formatter.py
--- a/mercurial/formatter.py
+++ b/mercurial/formatter.py
@@ -626,8 +626,7 @@
     a map file"""
     assert not (spec.tmpl and spec.mapfile)
     if spec.mapfile:
-        frommapfile = templater.templater.frommapfile
-        return frommapfile(
+        return templater.templater.frommapfile(
             spec.mapfile, defaults=defaults, resources=resources, cache=cache
         )
     return maketemplater(



To: martinvonz, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200729/fe7f668a/attachment-0002.html>


More information about the Mercurial-patches mailing list