commit | a45598a035a3a68e19e7aebff7c5ddf003517363 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Fri May 14 16:35:39 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Fri May 14 16:35:39 2010 +0000 |
tree | 88b48472e99b7c574d8ca79bdad0288622d57616 | |
parent | 77c3862417552902425d1ccb1ace468d81dab36b [diff] |
posix_listdir(), posix_readlink(): avoid temporary PyBytes object Use directly PyUnicode_DecodeFSDefaultAndSize() instead of PyBytes_FromStringAndSize() + PyUnicode_FromEncodedObject() if the argument is unicode.