comparison mercurial/templatefilters.py @ 25983:1245049da5f3

templatefilters: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 20:08:52 -0700
parents 3a33412792f1
children c568c4db036f
comparison
equal deleted inserted replaced
25982:b2f3f185e458 25983:1245049da5f3
3 # Copyright 2005-2008 Matt Mackall <mpm@selenic.com> 3 # Copyright 2005-2008 Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 import cgi, re, os, time, urllib 8 from __future__ import absolute_import
9 import encoding, node, util 9
10 import hbisect 10 import cgi
11 import templatekw 11 import os
12 import re
13 import time
14 import urllib
15
16 from . import (
17 encoding,
18 hbisect,
19 node,
20 templatekw,
21 util,
22 )
12 23
13 def addbreaks(text): 24 def addbreaks(text):
14 """:addbreaks: Any text. Add an XHTML "<br />" tag before the end of 25 """:addbreaks: Any text. Add an XHTML "<br />" tag before the end of
15 every line except the last. 26 every line except the last.
16 """ 27 """