[Python-checkins] python/dist/src/Lib urllib.py,1.147,1.148

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Tue, 11 Jun 2002 06:38:53 -0700


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

Modified Files:
	urllib.py 
Log Message:
Fix SF #565414, FancyURLopener() needs to support **kwargs
since the URLopener base class does and **kwargs are used in urlopen.


Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.147
retrieving revision 1.148
diff -C2 -d -r1.147 -r1.148
*** urllib.py	3 Jun 2002 15:58:32 -0000	1.147
--- urllib.py	11 Jun 2002 13:38:51 -0000	1.148
***************
*** 539,544 ****
      """Derived class with handlers for errors we can handle (perhaps)."""
  
!     def __init__(self, *args):
!         apply(URLopener.__init__, (self,) + args)
          self.auth_cache = {}
          self.tries = 0
--- 539,544 ----
      """Derived class with handlers for errors we can handle (perhaps)."""
  
!     def __init__(self, *args, **kwargs):
!         apply(URLopener.__init__, (self,) + args, kwargs)
          self.auth_cache = {}
          self.tries = 0