# HG changeset patch # User Yuya Nishihara # Date 1448373520 -32400 # Node ID 28e50c4b15ed383b4bad0eb1b4b78950c2eb38b2 # Parent 890273343170fd90cc9b61bc92a0c2f9ea540097 commandserver: use absolute_import diff -r 890273343170 -r 28e50c4b15ed mercurial/commandserver.py --- a/mercurial/commandserver.py Mon Dec 14 22:21:30 2015 +0000 +++ b/mercurial/commandserver.py Tue Nov 24 22:58:40 2015 +0900 @@ -5,10 +5,22 @@ # 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 _ +from __future__ import absolute_import + +import SocketServer +import errno +import os import struct -import sys, os, errno, traceback, SocketServer -import dispatch, encoding, util, error +import sys +import traceback + +from .i18n import _ +from . import ( + dispatch, + encoding, + error, + util, +) logfile = None diff -r 890273343170 -r 28e50c4b15ed tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Mon Dec 14 22:21:30 2015 +0000 +++ b/tests/test-check-py3-compat.t Tue Nov 24 22:58:40 2015 +0900 @@ -101,7 +101,6 @@ mercurial/byterange.py not using absolute_import 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/dirstate.py not using absolute_import mercurial/dispatch.py requires print_function