fancyopts: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:16:16 -0700
changeset 25947 6002e2d95e54
parent 25946 5e0d80195a0f
child 25948 34bd1a5eef5b
fancyopts: use absolute_import
mercurial/fancyopts.py
--- a/mercurial/fancyopts.py	Sat Aug 08 19:13:14 2015 -0700
+++ b/mercurial/fancyopts.py	Sat Aug 08 19:16:16 2015 -0700
@@ -5,9 +5,12 @@
 # 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 getopt
-import util
-from i18n import _
+
+from .i18n import _
+from . import util
 
 def gnugetopt(args, options, longoptions):
     """Parse options mostly like getopt.gnu_getopt.