New submission from Sean Wang :
When an IPV4 URL with 'username:password' in it, and the password contains
special characters like #[]?, urlparse would act as unexcepted.
example:
urlparse('http://user:pass#?[w...@example.com:80/path')
--
components: Library (L
Sean Wang added the comment:
when an unicode option.default_value could not be ascii encoded, it would throw
exception, detailed logs below:
File "/Users/seanwang/Documents/dev/foo/bar.py", line 119, in main
parser.print_help()
File
"/usr/local/Cellar/python/2.7.
Sean Wang added the comment:
Sorry, missed one condition:
I used `unicode_literals` in Python 2.7.10, example below:
>>> from __future__ import unicode_literals
>>> str('api名称')
Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError:
Sean Wang added the comment:
This bug still exists in Python 2.7.10 with optparse version 1.5.3.
When the default_value is not ASCII encoded, it would raise
`UnicodeEncodeError: 'ascii' codec can't encode characters`
this error is due to the `str` usage in `expand_default` m
Sean Wang added the comment:
upload a sample test file
--
Added file: http://bugs.python.org/file40929/test
___
Python tracker
<http://bugs.python.org/issue25
New submission from Sean Wang:
I transfered a file from remote Debian host to my local Windows 10 host using
SecureFX.
I found that the file's last modifed date was 1900/1/1,0:00:00 on
Windows.
I tried to serve this file to be downloaded, and it crashed as follows:
Exception hap
New submission from Sean Wang :
ConfigParser failed to parse a utf-8 file with BOM bytes('\xef\xbb\xbf'),
it would raise ConfigParser.MissingSectionHeaderError.
I think that other files with BOM would have the same problem; because the
argument "SECTCRE" does not conside