changeset 45262:22eafb16f1c5

formatter: inline a variable assigned from `templater.templater.frommapfile` The variable doesn't get reused and it doesn't help formatting, so I don't see any reason for it. Differential Revision: https://phab.mercurial-scm.org/D8807
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 23 Jul 2020 10:20:48 -0700
parents 28840ef52f71
children b7444cfc2c05
files mercurial/formatter.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/formatter.py	Wed Jul 22 21:23:46 2020 -0700
+++ b/mercurial/formatter.py	Thu Jul 23 10:20:48 2020 -0700
@@ -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(