[Python-checkins] python/dist/src/Lib urllib2.py,1.40,1.41
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Sun, 04 May 2003 18:47:19 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv22327
Modified Files:
urllib2.py
Log Message:
Add comment explaining try/except for endheaders().
Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** urllib2.py 4 May 2003 23:44:49 -0000 1.40
--- urllib2.py 5 May 2003 01:47:13 -0000 1.41
***************
*** 818,821 ****
--- 818,823 ----
for k, v in req.headers.items():
h.putheader(k, v)
+ # httplib will attempt to connect() here. be prepared
+ # to convert a socket error to a URLError.
try:
h.endheaders()