# HG changeset patch # User Gregory Szorc # Date 2015-08-09 03:08:52 # Node ID 1245049da5f35cc4d06e1cef9a6381dc53dc947c # Parent b2f3f185e4580c50d22f4cc25caec80e7c7f676e templatefilters: use absolute_import diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -5,10 +5,21 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import cgi, re, os, time, urllib -import encoding, node, util -import hbisect -import templatekw +from __future__ import absolute_import + +import cgi +import os +import re +import time +import urllib + +from . import ( + encoding, + hbisect, + node, + templatekw, + util, +) def addbreaks(text): """:addbreaks: Any text. Add an XHTML "
" tag before the end of