progress: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:57:10 -0700
changeset 25968 1139d7cf9405
parent 25967 224a33452ed4
child 25969 7b200566e474
progress: use absolute_import
mercurial/progress.py
--- a/mercurial/progress.py	Sat Aug 08 19:56:58 2015 -0700
+++ b/mercurial/progress.py	Sat Aug 08 19:57:10 2015 -0700
@@ -5,13 +5,14 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
+from __future__ import absolute_import
+
 import sys
-import time
 import threading
-from mercurial import encoding
+import time
 
-from mercurial.i18n import _
-
+from .i18n import _
+from . import encoding
 
 def spacejoin(*args):
     return ' '.join(s for s in args if s)