Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

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).