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.

Title: latent NameError in xmlrpc package
Type: behavior Stage: resolved
Components: Library (Lib), XML Versions: Python 3.2, Python 3.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: flox Nosy List: ezio.melotti, flox, pitrou, python-dev
Priority: normal Keywords: patch

Created on 2011-10-29 22:51 by flox, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
issue13291_xmlrpc.diff flox, 2011-10-30 00:59 review
issue13291_xmlrpc_v2.diff flox, 2011-10-30 09:59 review
Messages (7)
msg146622 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-29 22:51
There's two names which should be fixed in "xmlrpc" package:

--- a/Lib/xmlrpc/
-        elif isinstance(other, (str, unicode)):

--- a/Lib/xmlrpc/
-            response = xmlrpclib.dumps(
-                xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)),

We may extend test coverage too.
msg146625 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-30 00:59
Proposed fix, with some tests.
msg146627 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-10-30 07:13
I left a couple of comments on rietveld.
msg146629 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-30 09:59
Thank you. Patch updated.
msg146657 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-10-30 19:26
New changeset f3d454b20b35 by Florent Xicluna in branch '3.2':
Closes #13291: NameError in xmlrpc package.
msg146725 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-10-31 18:36
Apparently buildbot failures are caused by this commit:

ERROR: test_datetime_before_1900 (test.test_xmlrpc.XMLRPCTestCase)
Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/", line 62, in test_datetime_before_1900
    (newdt,), m = xmlrpclib.loads(s, use_datetime=1)
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/xmlrpc/", line 969, in loads
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/xmlrpc/", line 430, in feed
    self._parser.Parse(data, 0)
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/xmlrpc/", line 662, in end
    return f(self, "".join(self._data))
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/xmlrpc/", line 745, in end_dateTime
    value = _datetime_type(data)
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/xmlrpc/", line 359, in _datetime_type
    return datetime.strptime(data, "%Y%m%dT%H:%M:%S")
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/", line 488, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/", line 337, in _strptime
    (data_string, format))
ValueError: time data '10210T11:41:23' does not match format '%Y%m%dT%H:%M:%S'
msg146741 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-31 20:44
This last issue is in the datetime module. issue #13305
Date User Action Args
2022-04-11 14:57:23adminsetgithub: 57500
2011-10-31 20:44:40floxsetstatus: open -> closed

messages: + msg146741
2011-10-31 18:36:50pitrousetstatus: closed -> open

nosy: + pitrou
messages: + msg146725

assignee: flox
2011-10-30 19:26:53python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg146657

resolution: fixed
stage: patch review -> resolved
2011-10-30 09:59:17floxsetfiles: + issue13291_xmlrpc_v2.diff

messages: + msg146629
2011-10-30 07:13:08ezio.melottisetnosy: + ezio.melotti
messages: + msg146627
2011-10-30 00:59:12floxsetfiles: + issue13291_xmlrpc.diff
keywords: + patch
messages: + msg146625

stage: test needed -> patch review
2011-10-29 22:51:22floxcreate