Explorar el Código

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 hace 11 años
padre
commit
d9ad3c2392
Se han modificado 1 ficheros con 0 adiciones y 13 borrados
  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()
-