UnicodeWarning parsing a date on Windows
Bug #1227221 reported by
remram44
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
On Python 2.7, time.tzname can contain bytestrings in ISO-8859-15 format. For example, with my locale set to French, the tuple is: ('Est', 'Est (heure d\x92\xe9t\xe9)')
Because _result.tzname is unicode, the test res.tzname in time.tzname in parser.parser line 336 causes a UnicodeWarning as one of the elements cannot be converted to unicode for comparison (it is not ASCII).
C:\Python2.
To post a comment you must log in.
I'm using Python 2.7.5 and dateutil 2.1 (from pip).