Message116043
Patch:
- Remove the bytes version of listdir(): reuse the unicode version but converts the filename to bytes using PyUnicode_EncodeFSDefault() if the directory name is not unicode
- use Py_XDECREF(d) instead of Py_DECREF(d) at the end (because d=NULL on error)
- use Py_CLEAR(d) instead of "Py_DECREF(d); d=NULL;"
- remove "char namebuf[MAX_PATH+5]" buffer (use less stack memory) |
|
Date |
User |
Action |
Args |
2010-09-10 21:30:23 | vstinner | set | recipients:
+ vstinner, loewis |
2010-09-10 21:30:22 | vstinner | set | messageid: <1284154222.85.0.283363431979.issue9820@psf.upfronthosting.co.za> |
2010-09-10 21:30:21 | vstinner | link | issue9820 messages |
2010-09-10 21:30:20 | vstinner | create | |
|