[Python-3000-checkins] r65920 - in python/branches/py3k: Lib/xmlrpc/client.py Misc/NEWS
amaury.forgeotdarc
python-3000-checkins at python.org
Wed Aug 20 23:35:51 CEST 2008
Author: amaury.forgeotdarc
Date: Wed Aug 20 23:35:50 2008
New Revision: 65920
Log:
#3614: Correct a typo in xmlrpc.client.
Modified:
python/branches/py3k/Lib/xmlrpc/client.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/xmlrpc/client.py
==============================================================================
--- python/branches/py3k/Lib/xmlrpc/client.py (original)
+++ python/branches/py3k/Lib/xmlrpc/client.py Wed Aug 20 23:35:50 2008
@@ -1203,7 +1203,7 @@
headers = {}
if extra_headers:
for key, val in extra_headers:
- header[key] = val
+ headers[key] = val
headers["Content-Type"] = "text/xml"
headers["User-Agent"] = self.user_agent
connection.request("POST", handler, request_body, headers)
@@ -1271,7 +1271,7 @@
headers = {}
if extra_headers:
for key, val in extra_headers:
- header[key] = val
+ headers[key] = val
headers["Content-Type"] = "text/xml"
headers["User-Agent"] = self.user_agent
connection.request("POST", handler, request_body, headers)
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Wed Aug 20 23:35:50 2008
@@ -46,6 +46,9 @@
Library
-------
+- Issue #3614: Corrected a typo in xmlrpc.client, leading to a NameError
+ "global name 'header' is not defined".
+
- Issue #2834: update the regular expression library to match the unicode
standards of py3k. In other words, mixing bytes and unicode strings
(be it as pattern, search string or replacement string) raises a TypeError.
More information about the Python-3000-checkins
mailing list