]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on Windows
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 7 Oct 2010 22:23:10 +0000 (22:23 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 7 Oct 2010 22:23:10 +0000 (22:23 +0000)
commita4a759515e2e0114d41acdada3642265c01270ac
tree1929fc7dd922e10ec6d710a390b4f0fdcffaa1db
parentb306d7594ff0ed5ba666dbb26491a269abfbc9d7
_Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on Windows

On Windows, Py_UNICODE is wchar_t, so we can avoid the expensive Py_UNICODE*
=> wchar_t* conversion.
Include/fileutils.h
Python/fileutils.c