wsgidav.util.to_str

wsgidav.util.to_str(s, encoding='utf8')[source]

Convert data to native str type (bytestring on Py2 and unicode on Py3).