# HG changeset patch # User Martin von Zweigbergk # Date 1595524848 25200 # Node ID 22eafb16f1c5af87ecd8077014cd971d6c7c78ce # Parent 28840ef52f7179c2e403e96d09a9ff2396d95cf1 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 diff -r 28840ef52f71 -r 22eafb16f1c5 mercurial/formatter.py --- 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(