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(