Преглед изворни кода

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