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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jul 28 18:14:21 UTC 2020


martinvonz updated this revision to Diff 22139.

REPOSITORY
  rHG Mercurial

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

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
@@ -624,8 +624,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/20200728/6f5cde7b/attachment-0002.html>


More information about the Mercurial-patches mailing list