[Python-checkins] python/dist/src/Lib httplib.py,1.42.10.9,1.42.10.10

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Fri, 31 Jan 2003 06:07:35 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21881

Modified Files:
      Tag: release22-maint
	httplib.py 
Log Message:
Remove references to pages that don't exist anymore.


Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.42.10.9
retrieving revision 1.42.10.10
diff -C2 -d -r1.42.10.9 -r1.42.10.10
*** httplib.py	7 Oct 2002 01:18:17 -0000	1.42.10.9
--- httplib.py	31 Jan 2003 14:07:31 -0000	1.42.10.10
***************
*** 1215,1220 ****
  
          for host, selector in (('sourceforge.net', '/projects/python'),
-                                ('dbserv2.theopalgroup.com', '/mediumfile'),
-                                ('dbserv2.theopalgroup.com', '/smallfile'),
                                 ):
              print "https://%s%s" % (host, selector)
--- 1215,1218 ----
***************
*** 1232,1266 ****
                  for header in headers.headers: print header.strip()
              print
- 
-     # Test a buggy server -- returns garbled status line.
-     # http://www.yahoo.com/promotions/mom_com97/supermom.html
-     c = HTTPConnection("promotions.yahoo.com")
-     c.set_debuglevel(1)
-     c.connect()
-     c.request("GET", "/promotions/mom_com97/supermom.html")
-     r = c.getresponse()
-     print r.status, r.version
-     lines = r.read().split("\n")
-     print "\n".join(lines[:5])
- 
-     c = HTTPConnection("promotions.yahoo.com", strict=1)
-     c.set_debuglevel(1)
-     c.connect()
-     c.request("GET", "/promotions/mom_com97/supermom.html")
-     try:
-         r = c.getresponse()
-     except BadStatusLine, err:
-         print "strict mode failed as expected"
-         print err
-     else:
-         print "XXX strict mode should have failed"
- 
-     for strict in 0, 1:
-         h = HTTP(strict=strict)
-         h.connect("promotions.yahoo.com")
-         h.putrequest('GET', "/promotions/mom_com97/supermom.html")
-         h.endheaders()
-         status, reason, headers = h.getreply()
-         assert (strict and status == -1) or status == 200, (strict, status)
  
  if __name__ == '__main__':
--- 1230,1233 ----