Patchwork [4,of,5] config: use absolute_import

login
register
mail settings
Submitter Gregory Szorc
Date Aug. 8, 2015, 8 a.m.
Message ID <6db2ce9a7922d4cae99b.1439020825@vm-ubuntu-main.gateway.sonic.net>
Download mbox | patch
Permalink /patch/10167/
State Accepted
Headers show

Comments

Gregory Szorc - Aug. 8, 2015, 8 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1439018933 25200
#      Sat Aug 08 00:28:53 2015 -0700
# Node ID 6db2ce9a7922d4cae99bf608d9fd40cfbd1a7d56
# Parent  a9f201c2e5b32a0d94f86a0bad90f85cd2128ab7
config: use absolute_import

Patch

diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -4,11 +4,18 @@ 
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from i18n import _
-import error, util
-import os, errno
+from __future__ import absolute_import
+
+import errno
+import os
+
+from .i18n import _
+from . import (
+    error,
+    util,
+)
 
 class config(object):
     def __init__(self, data=None, includepaths=[]):
         self._data = {}