homepage

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.

Author loewis
Recipients eric.araujo, ezio.melotti, lemburg, loewis, nailor, python-dev, skrah, terry.reedy, vincent.chute, vstinner
Date 2011年10月18日.18:49:57
SpamBayes Score 1.1976955e-05
Marked as misclassified No
Message-id <1318963798.27.0.8815841259.issue3067@psf.upfronthosting.co.za>
In-reply-to
Content
I think the reported exception type is incorrect. Given that the error message is 'Locale must be None, a string, or an iterable of two strings -- language code, encoding.', it very much sounds like a TypeError is being reported here.
So I think all that's needed is that the ValueError is converted into a TypeError.
Also notice that the tuple unpacking may actually succeed:
py> locale.setlocale(locale.LC_ALL,u"en")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.6/locale.py", line 513, in setlocale
 return _setlocale(category, locale)
locale.Error: unsupported locale setting
History
Date User Action Args
2011年10月18日 18:49:58loewissetrecipients: + loewis, lemburg, terry.reedy, vstinner, ezio.melotti, eric.araujo, vincent.chute, skrah, nailor, python-dev
2011年10月18日 18:49:58loewissetmessageid: <1318963798.27.0.8815841259.issue3067@psf.upfronthosting.co.za>
2011年10月18日 18:49:57loewislinkissue3067 messages
2011年10月18日 18:49:57loewiscreate

AltStyle によって変換されたページ (->オリジナル) /