[issue31864] datetime violates Postel's law

2017-10-24 Thread Geoff Kuenning
New submission from Geoff Kuenning : The datetime package is too eager to reject nonconforming VCALENDAR-format files. The particular issue I encountered is related to time zones. RFC 5545 clearly states that the DTSTART field is required. However, there are situations where DTSTART isn&#

[issue31864] datetime violates Postel's law

2017-10-24 Thread Geoff Kuenning
Change by Geoff Kuenning : -- components: +Library (Lib) type: -> behavior versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue31864] datetime violates Postel's law

2017-10-24 Thread Geoff Kuenning
Geoff Kuenning added the comment: Duh, my mistake. The problem is in dateutil, which AFAICT is indeed not part of the Python standard library. I'll hang my head in shame and go report the problem in the right place. -- resolution: third party -> status: closed

[issue32298] Email.quopriprime over-encodes characters

2017-12-12 Thread Geoff Kuenning
New submission from Geoff Kuenning : Email.quopriprime creates a map of header and body bytes that need no encoding: for c in b'-!*+/' + ascii_letters.encode('ascii') + digits.encode('ascii'): _QUOPRI_HEADER_MAP[c] = chr(c) This map is overly restricti

[issue32298] Email.quopriprime over-encodes characters

2017-12-12 Thread Geoff Kuenning
Geoff Kuenning added the comment: Oops, that loop is a bit too generous. Here's a better one: for c in list(range(33, 61)) + [62] + list(range(64, 95)) + list(range(96,127)): -- ___ Python tracker <https://bugs.python.org/is

[issue32298] Email.quopriprime over-encodes characters

2017-12-13 Thread Geoff Kuenning
Geoff Kuenning added the comment: I should have read that part of RFC 2047 before I submitted. I'd love to claim that I'm going to write a patch that would do as you suggest. But the reality is that I'm unlikely to find the time, so I'm going to be wise for once and av