소스 검색

Remove unused code
This may have once allowed ``python http_client.py <url>`` but a bad
import and an arguments error prevent it from working. It has been
broken for years and this feature is not needed, so just remove it.

Mike Naberezny 11 년 전
부모
커밋
d9ad3c2392
1개의 변경된 파일0개의 추가작업 그리고 13개의 파일을 삭제
  1. 0 13
      supervisor/http_client.py

+ 0 - 13
supervisor/http_client.py

@@ -5,7 +5,6 @@ import socket
 import base64
 from urlparse import urlparse
 
-from supervisor.medusa import asyncore_25 as aysncore
 from supervisor.medusa import asynchat_25 as asynchat
 
 CR="\x0d"
@@ -213,15 +212,3 @@ class HTTPHandler(object, asynchat.async_chat):
         if line==CRLF:
             self.done()
             self.close()
-
-if __name__ == '__main__':
-    url = sys.argv[1]
-    listener = Listener()
-    handler = HTTPHandler(listener)
-    try:
-        handler.get(url)
-    except Exception, e:
-        listener.error(url, "Error connecting '%s'" % e)
-
-    asyncore.loop()
-