[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97081a80f487 by Benjamin Peterson in branch '2.7': fix load_verify_locations on unicode paths (closes #22244) http://hg.python.org/cpython/rev/97081a80f487 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch resolves the issue, includes a test. -- keywords: +needs review, patch Added file: http://bugs.python.org/file36438/t22244.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22244

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can't you just use et in PyArg_Parse? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22244 ___

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Unfortunately no, the API accepts explicit Nones (in addition to simply not passing the argument), and et errors on those. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22244

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: You could do all the argument conversion in the Python SSLContext class and then delegate to the base _SSLContext class... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22244

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: It's not clear to me that that's better, and it makes the diff with the Python3 version larger. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22244 ___

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch adds an additional test for a more interesting unicode path. -- Added file: http://bugs.python.org/file36441/t22244.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22244

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-21 Thread Alex Gaynor
New submission from Alex Gaynor: Details of the issue are here: http://bugs.python.org/msg225613 I'm not sure what the correct API to use is there, perhaps the encoding can be folded into the PyArg_ParseTupleAndKeywords() call. -- components: Extension Modules messages: 225614 nosy: