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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Aug 2 16:08:11 UTC 2020


Closed by commit rHG22eafb16f1c5: formatter: inline a variable assigned from `templater.templater.frommapfile` (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

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

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, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200802/ecb92053/attachment-0002.html>


More information about the Mercurial-patches mailing list