[Python-checkins] CVS: python/dist/src/Lib httplib.py,1.26,1.27

Guido van Rossum python-dev@python.org
Sat, 13 Jan 2001 08:55:35 -0800


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

Modified Files:
	httplib.py 
Log Message:
SF Patch #103225 by Ping: httplib: smallest Python patch ever

  The ASCII-art diagram at the top of httplib contains a backslash at
  the end of a line, which causes Python to remove the newline. This
  one-character patch adds a space after the backslash so it will
  appear at the end of the line in the docstring as intended.


Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** httplib.py	2000/12/15 15:09:42	1.26
--- httplib.py	2001/01/13 16:55:33	1.27
***************
*** 26,30 ****
      Unread-response   [Response-headers-read]
        |\____________________
!       |                     \
        | response.read()      | putrequest()
        v                      v
--- 26,30 ----
      Unread-response   [Response-headers-read]
        |\____________________
!       |                     \ 
        | response.read()      | putrequest()
        v                      v
***************
*** 333,337 ****
              i = host.find(':')
              if i >= 0:
!                 port = int(host[i+1:])
                  host = host[:i]
              else:
--- 333,340 ----
              i = host.find(':')
              if i >= 0:
!                 try:
!                     port = int(host[i+1:])
!                 except ValueError, msg:
!                     raise socket.error, str(msg)
                  host = host[:i]
              else: