##// END OF EJS Templates
tests: use absolute_import in tinyproxy...
Gregory Szorc -
r27302:faca4adf default
parent child Browse files
Show More
@@ -220,5 +220,4 b''
220 tests/test-url.py requires print_function
220 tests/test-url.py requires print_function
221 tests/test-walkrepo.py requires print_function
221 tests/test-walkrepo.py requires print_function
222 tests/test-wireproto.py requires print_function
222 tests/test-wireproto.py requires print_function
223 tests/tinyproxy.py not using absolute_import
224 tests/tinyproxy.py requires print_function
223 tests/tinyproxy.py requires print_function
@@ -1,5 +1,7 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2
2
3 from __future__ import absolute_import
4
3 __doc__ = """Tiny HTTP Proxy.
5 __doc__ = """Tiny HTTP Proxy.
4
6
5 This module implements GET, HEAD, POST, PUT and DELETE methods
7 This module implements GET, HEAD, POST, PUT and DELETE methods
@@ -12,7 +14,12 b' Any help will be greatly appreciated. '
12
14
13 __version__ = "0.2.1"
15 __version__ = "0.2.1"
14
16
15 import BaseHTTPServer, select, socket, SocketServer, urlparse, os
17 import BaseHTTPServer
18 import os
19 import select
20 import socket
21 import SocketServer
22 import urlparse
16
23
17 class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
24 class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
18 __base = BaseHTTPServer.BaseHTTPRequestHandler
25 __base = BaseHTTPServer.BaseHTTPRequestHandler
General Comments 0
You need to be logged in to leave comments. Login now