[Python-checkins] python/dist/src/Lib httplib.py,1.86,1.87

loewis at users.sourceforge.net loewis at users.sourceforge.net
Wed Aug 18 14:46:28 CEST 2004


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

Modified Files:
	httplib.py 
Log Message:
Patch #800236: add HTTPResponse.getheaders().


Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** httplib.py	7 Aug 2004 16:28:13 -0000	1.86
--- httplib.py	18 Aug 2004 12:46:25 -0000	1.87
***************
*** 494,497 ****
--- 494,503 ----
          return self.msg.getheader(name, default)
  
+     def getheaders(self):
+         """Return list of (header, value) tuples."""
+         if self.msg is None:
+             raise ResponseNotReady()
+         return self.msg.items()
+ 
  
  class HTTPConnection:



More information about the Python-checkins mailing list