1. Armin Rigo
  2. cpython-withatomic

Commits

Amaury Forgeot d'Arc  committed 033d63b

#3614: Correct a typo in xmlrpc.client.

  • Participants
  • Parent commits 88ca517
  • Branches default

Comments (0)

Files changed (2)

File Lib/xmlrpc/client.py

View file
  • Ignore whitespace
         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)
         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)

File Misc/NEWS

View file
  • Ignore whitespace
 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.