[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2014-12-30 Thread Christopher Foo
New submission from Christopher Foo: Something like "Set-Cookie: ; Expires=Thu, 01 Jan 1970 00:00:10 GMT" causes the resulting cookie.value to be parsed as an int. I expected either str or None as described in the documentation. Example evil server: try: import http

[issue22803] textwrap.indent version added not documented

2014-11-05 Thread Christopher Foo
New submission from Christopher Foo: I was running my program under CI and it failed under 3.2: text = textwrap.indent(text, '* ', predicate=lambda line: True) AttributeError: 'module' object has no attribute 'indent' textwrap.indent appears to be a new

[issue21103] Encoding str to IDNA with ellipsis decomposes to empty labels

2014-03-30 Thread Christopher Foo
New submission from Christopher Foo: When encoding a string with the IDNA codec I expected that it will always raise an exception with empty labels. When I do this >>> 'example.c…'.encode('idna').decode('ascii') it returns 'example.c...