[Python-checkins] python/dist/src/Lib urllib2.py,1.77,1.77.2.1

jlgijsbers at users.sourceforge.net jlgijsbers at users.sourceforge.net
Sun Jan 9 06:53:29 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16375

Modified Files:
      Tag: release24-maint
	urllib2.py 
Log Message:
Backport patch #1095362: replace hardcoded test for POST/GET with call to
get_method, removing some duplication and gaining some flexibility in the
process.


Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.77
retrieving revision 1.77.2.1
diff -u -d -r1.77 -r1.77.2.1
--- urllib2.py	11 Oct 2004 13:53:07 -0000	1.77
+++ urllib2.py	9 Jan 2005 05:53:27 -0000	1.77.2.1
@@ -856,7 +856,7 @@
             entdig = None
 
         A1 = "%s:%s:%s" % (user, realm, pw)
-        A2 = "%s:%s" % (req.has_data() and 'POST' or 'GET',
+        A2 = "%s:%s" % (req.get_method(),
                         # XXX selector: what about proxies and full urls
                         req.get_selector())
         if qop == 'auth':



More information about the Python-checkins mailing list