瀏覽代碼

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()
-