[Python-3000-checkins] r60318 - python/branches/py3k/Lib/urllib.py

georg.brandl python-3000-checkins at python.org
Sat Jan 26 12:23:13 CET 2008


Author: georg.brandl
Date: Sat Jan 26 12:23:13 2008
New Revision: 60318

Modified:
   python/branches/py3k/Lib/urllib.py
Log:
Fix merge glitch that let test_urllib fail.


Modified: python/branches/py3k/Lib/urllib.py
==============================================================================
--- python/branches/py3k/Lib/urllib.py	(original)
+++ python/branches/py3k/Lib/urllib.py	Sat Jan 26 12:23:13 2008
@@ -360,7 +360,8 @@
         # According to RFC 2616, "2xx" code indicates that the client's
         # request was successfully received, understood, and accepted.
         if (200 <= response.status < 300):
-            return addinfourl(response.fp, response.msg, "http:" + url)
+            return addinfourl(response.fp, response.msg, "http:" + url,
+                              response.status)
         else:
             return self.http_error(
                 url, response.fp,


More information about the Python-3000-checkins mailing list