We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following function will produce an error in python 3k.
@register(_load_registry, TAG_EMPTY_STR) def _load_empty_str(stream): return ""
The reason is that it will return a unicode string and later _load_unicode will complain that an str object has no method "decode".
Solution:
if is_py3k: @register(_load_registry, TAG_EMPTY_STR) def _load_empty_str(stream): return b"" else: @register(_load_registry, TAG_EMPTY_STR) def _load_empty_str(stream): return ""
The text was updated successfully, but these errors were encountered:
1824a33
thanks
Sorry, something went wrong.
No branches or pull requests
The following function will produce an error in python 3k.
The reason is that it will return a unicode string and later _load_unicode will complain that an str object has no method "decode".
Solution:
The text was updated successfully, but these errors were encountered: