amnong / easywebdav

A WebDAV Client in Python
http://pypi.python.org/pypi/easywebdav/
ISC License
207 stars 113 forks source link

ls command does not work #19

Closed kartoch closed 10 years ago

kartoch commented 10 years ago

I'm trying to ls a directory with latest version, but I have the following error message:

File "/home/kartoch/opt/python/pelican/src/easywebdav/easywebdav/client.py", line 174, in ls
  tree = xml.parse(StringIO(response.content))
TypeError: initial_value must be str or None, not bytes
amnong commented 10 years ago

Yes... I committed this late last night and then I noticed there might be a bug there, and also I need to test again with Python 3. Anyway the use of io.BytesIO is wrong, and so is the use of response.content....

On Thu, Apr 3, 2014 at 10:41 AM, Julien Iguchi-Cartigny < notifications@github.com> wrote:

I'm trying to ls a directory with latest version, but I have the following error message:

File "/home/kartoch/opt/python/pelican/src/easywebdav/easywebdav/client.py", line 174, in ls tree = xml.parse(StringIO(response.content))

TypeError: initial_value must be str or None, not bytes

— Reply to this email directly or view it on GitHubhttps://github.com/amnong/easywebdav/issues/19 .