diff --git a/mercurial/templater.py b/mercurial/templater.py