This line constructs an io.StringIO from a bytes object, something that is only possible on Python 2.
ConnectionCollection.get_member_names(), DbCollection.get_member_names(), and DocResource.get_display_name() return or can return bytes, yet I am quite sure that they should always be returning str values instead. In particular, the values returned by get_member_names() are only ever used by being passed to get_member(), yet the classes' get_member() methods pass their arguments to join_uri(), which only works on strs.
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.
The file
wsgidav/samples/mongo_dav_provider.py
appears to be out of date in at least the following respects:io.StringIO
from abytes
object, something that is only possible on Python 2.ConnectionCollection.get_member_names()
,DbCollection.get_member_names()
, andDocResource.get_display_name()
return or can returnbytes
, yet I am quite sure that they should always be returningstr
values instead. In particular, the values returned byget_member_names()
are only ever used by being passed toget_member()
, yet the classes'get_member()
methods pass their arguments tojoin_uri()
, which only works onstr
s.