diff 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
line wrap: on
line diff
--- a/tests/dumbhttp.py	Sun Dec 06 22:10:10 2015 -0800
+++ b/tests/dumbhttp.py	Sun Dec 06 22:12:07 2015 -0800
@@ -1,13 +1,22 @@
 #!/usr/bin/env python
 
+from __future__ import absolute_import
+
 """
 Small and dumb HTTP server for use in tests.
 """
 
-from optparse import OptionParser
-import BaseHTTPServer, SimpleHTTPServer, signal, sys
+import optparse
+import BaseHTTPServer
+import signal
+import SimpleHTTPServer
+import sys
 
-from mercurial import cmdutil
+from mercurial import (
+    cmdutil,
+)
+
+OptionParser = optparse.OptionParser
 
 class simplehttpservice(object):
     def __init__(self, host, port):