##// END OF EJS Templates
tests: make tinyproxy.py not import sys.argv by name
Yuya Nishihara -
r28778:256d90bb default
parent child Browse files
Show More
@@ -19,6 +19,7 b' import SocketServer'
19 import os
19 import os
20 import select
20 import select
21 import socket
21 import socket
22 import sys
22 import urlparse
23 import urlparse
23
24
24 class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
25 class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
@@ -140,7 +141,7 b' class ThreadingHTTPServer (SocketServer.'
140 a.close()
141 a.close()
141
142
142 if __name__ == '__main__':
143 if __name__ == '__main__':
143 from sys import argv
144 argv = sys.argv
144 if argv[1:] and argv[1] in ('-h', '--help'):
145 if argv[1:] and argv[1] in ('-h', '--help'):
145 print(argv[0], "[port [allowed_client_name ...]]")
146 print(argv[0], "[port [allowed_client_name ...]]")
146 else:
147 else:
General Comments 0
You need to be logged in to leave comments. Login now