[Python-checkins] CVS: python/dist/src/Lib urllib2.py,1.22,1.23

Fred L. Drake fdrake@users.sourceforge.net
Thu, 08 Nov 2001 09:19:31 -0800


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

Modified Files:
	urllib2.py 
Log Message:
Clean up one comment, fix typos in others.

Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** urllib2.py	2001/10/09 16:18:45	1.22
--- urllib2.py	2001/11/08 17:19:29	1.23
***************
*** 73,81 ****
  # XXX issues:
  # If an authentication error handler that tries to perform
!  # authentication for some reason but fails, how should the error be
!  # signalled?  The client needs to know the HTTP error code.  But if
!  # the handler knows that the problem was, e.g., that it didn't know
!  # that hash algo that requested in the challenge, it would be good to
!  # pass that information along to the client, too.
  
  # XXX to do:
--- 73,81 ----
  # XXX issues:
  # If an authentication error handler that tries to perform
! # authentication for some reason but fails, how should the error be
! # signalled?  The client needs to know the HTTP error code.  But if
! # the handler knows that the problem was, e.g., that it didn't know
! # that hash algo that requested in the challenge, it would be good to
! # pass that information along to the client, too.
  
  # XXX to do:
***************
*** 329,334 ****
      def error(self, proto, *args):
          if proto in ['http', 'https']:
!             # XXX http[s] protocols are special cased
!             dict = self.handle_error['http'] # https is not different then http
              proto = args[2]  # YUCK!
              meth_name = 'http_error_%d' % proto
--- 329,334 ----
      def error(self, proto, *args):
          if proto in ['http', 'https']:
!             # XXX http[s] protocols are special-cased
!             dict = self.handle_error['http'] # https is not different than http
              proto = args[2]  # YUCK!
              meth_name = 'http_error_%d' % proto