wsgidav.compat.to_native

wsgidav.compat.to_native(s, encoding='utf8')[source]

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