comparison mercurial/commandserver.py @ 27351:28e50c4b15ed

commandserver: use absolute_import
author Yuya Nishihara <yuya@tcha.org>
date Tue, 24 Nov 2015 22:58:40 +0900
parents 56b2bcea2529
children 9fd8f1552369
comparison
equal deleted inserted replaced
27350:890273343170 27351:28e50c4b15ed
3 # Copyright Matt Mackall <mpm@selenic.com> 3 # Copyright Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from i18n import _ 8 from __future__ import absolute_import
9
10 import SocketServer
11 import errno
12 import os
9 import struct 13 import struct
10 import sys, os, errno, traceback, SocketServer 14 import sys
11 import dispatch, encoding, util, error 15 import traceback
16
17 from .i18n import _
18 from . import (
19 dispatch,
20 encoding,
21 error,
22 util,
23 )
12 24
13 logfile = None 25 logfile = None
14 26
15 def log(*args): 27 def log(*args):
16 if not logfile: 28 if not logfile: