comparison tests/dumbhttp.py @ 27282:0bb8c405a7c7

tests/dumbhttp: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Dec 2015 22:12:07 -0800
parents 6eab50a34fed
children 7623ba92af72
comparison
equal deleted inserted replaced
27281:3b517f2a3989 27282:0bb8c405a7c7
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2
3 from __future__ import absolute_import
2 4
3 """ 5 """
4 Small and dumb HTTP server for use in tests. 6 Small and dumb HTTP server for use in tests.
5 """ 7 """
6 8
7 from optparse import OptionParser 9 import optparse
8 import BaseHTTPServer, SimpleHTTPServer, signal, sys 10 import BaseHTTPServer
11 import signal
12 import SimpleHTTPServer
13 import sys
9 14
10 from mercurial import cmdutil 15 from mercurial import (
16 cmdutil,
17 )
18
19 OptionParser = optparse.OptionParser
11 20
12 class simplehttpservice(object): 21 class simplehttpservice(object):
13 def __init__(self, host, port): 22 def __init__(self, host, port):
14 self.address = (host, port) 23 self.address = (host, port)
15 def init(self): 24 def init(self):