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(