Patchwork [3,of,9] destutil: use absolute_import

login
register
mail settings
Submitter Gregory Szorc
Date Dec. 12, 2015, 6:47 p.m.
Message ID <c551aea38f472e28dc80.1449946066@gps-mbp.local>
Download mbox | patch
Permalink /patch/11985/
State Superseded
Commit ac839ee45b6a5b178a380aa6d90aaa454dbb05b0
Delegated to: Yuya Nishihara
Headers show

Comments

Gregory Szorc - Dec. 12, 2015, 6:47 p.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1449945145 18000
#      Sat Dec 12 13:32:25 2015 -0500
# Node ID c551aea38f472e28dc8020bf869eaccac898ddd1
# Parent  20fb54da45a5ed00f6304df9b3f15f1f70ef9232
destutil: use absolute_import

Patch

diff --git a/mercurial/destutil.py b/mercurial/destutil.py
--- a/mercurial/destutil.py
+++ b/mercurial/destutil.py
@@ -4,8 +4,10 @@ 
 #
 # 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
+
 from .i18n import _
 from . import (
     bookmarks,
     error,
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -102,9 +102,8 @@ 
   mercurial/cmdutil.py not using absolute_import
   mercurial/commands.py not using absolute_import
   mercurial/commandserver.py not using absolute_import
   mercurial/context.py not using absolute_import
-  mercurial/destutil.py not using absolute_import
   mercurial/dirstate.py not using absolute_import
   mercurial/dispatch.py requires print_function
   mercurial/encoding.py not using absolute_import
   mercurial/exchange.py not using absolute_import