diff options
author | Martin Packman <gzlist@googlemail.com> | 2017-06-06 21:25:15 +0100 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-11-28 20:24:18 -0500 |
commit | ba8c57f54d359de89920c1dbb7355ec2cbd5ed3a (patch) | |
tree | fab205a00d9aa8aaf047ccbc68f8c479d0f93f74 /sites | |
parent | 54cbd9b27c30db5ac08c18ad8aadd2075a078a22 (diff) |
Fix failure in listdir when server uses a locale
Fixes #985
SFTPAttributes uses the locale-aware %b directive for the
abbreviated month name with time.strftime, but was not
decoding the result on Python 2.7.
Add a strftime alias in py3compat that will always return
unicode, and resolve the mixing of bytes and text in
SFTPAttributes methods.
Add a test at the listdir level, and a more specific test
for the SFTPAttributes asbytes method.
Diffstat (limited to 'sites')
0 files changed, 0 insertions, 0 deletions