Author uis
Recipients ezio.melotti, python-dev, uis, vstinner, wosc
Date 2012-05-22.14:26:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337696761.99.0.696227288103.issue12931@psf.upfronthosting.co.za>
In-reply-to
Content
The change set committed for 2.7 introduces another problem. At the beginning of xmlrpclib.py, there is an explicit test for the availability of unicode:

try:
    unicode
except NameError:
    unicode = None # unicode support not available

In case unicode was set to None, a TypeError:
isinstance() arg 2 must be a class, type, or tuple of classes and types

will be raised by the code introduced to ServerProxy:

if isinstance(uri, unicode):
    uri = uri.encode('ISO-8859-1')
History
Date User Action Args
2012-05-22 14:26:02uissetrecipients: + uis, vstinner, ezio.melotti, wosc, python-dev
2012-05-22 14:26:01uissetmessageid: <1337696761.99.0.696227288103.issue12931@psf.upfronthosting.co.za>
2012-05-22 14:26:01uislinkissue12931 messages
2012-05-22 14:26:01uiscreate