This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: typo in xmlrpc.client
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, ddvoinikov
Priority: normal Keywords:

Created on 2008-08-20 06:13 by ddvoinikov, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg71514 - (view) Author: Dmitry Dvoinikov (ddvoinikov) Date: 2008-08-20 06:13
In xmlrpc.client:1204:
---
headers = {}
if extra_headers:
    for key, val in extra_headers:
        header[key] = val
---
shouldn't it read 
---
        headers[key] = val
              ^
---
?

Otherwise it bails out with 
---
NameError: global name 'header' is not defined
---
msg71576 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-08-20 21:36
Corrected as r65920. Thanks for the report!
History
Date User Action Args
2022-04-11 14:56:37adminsetgithub: 47864
2008-08-20 21:36:39amaury.forgeotdarcsetstatus: open -> closed
resolution: fixed
messages: + msg71576
nosy: + amaury.forgeotdarc
2008-08-20 06:13:34ddvoinikovcreate