[Python-Dev] logging module broken because of locale (original) (raw)
skip at pobox.com skip at pobox.com
Thu Jul 20 12:09:38 CEST 2006
- Previous message: [Python-Dev] logging module broken because of locale
- Next message: [Python-Dev] logging module broken because of locale
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Misa> Good point. Does the attached patch look reasonable?
...
Misa> - self.when = string.upper(when)
Misa> + self.when = unicode(when).upper()
...
The use of the string module instead of string methods suggests to me that the logging package attempts to work with older versions of Python. Looking at PEP 291 it looks like 1.5.2 compatibility is desired (no string methods, no unicode). I think a conscious decision by someone (probably Vinay Sajip) to give up that compatibility would be required.
Skip
- Previous message: [Python-Dev] logging module broken because of locale
- Next message: [Python-Dev] logging module broken because of locale
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]