New issue
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
"\t" no longer supported as an indent #432
Comments
Confirmed, here's a self-contained example: import ujson
print(ujson.__version__)
# ok
ujson.dumps([{"key": "value"}])
# TypeError: an integer is required (got type str)
ujson.dumps([{"key": "value"}], indent="\t") |
git bisect says 5b979ee is the first bad commit, from PR #426:
@chenhan1218, please could you check this? Thank you! |
To be fair, it doesn't look like it actually worked before, it used a single space instead of the tab, it just didn't complain about it. |
Good point, and there's already an issue for it: #319 (edit: and #317). The [
{
"key": "value"
}
] It would be good to support the same API as stdlib
|
Thanks all, let's close this as a duplicate of #319. |
Python 3.7.6
ujson 4.0.0
This behaviour has changed since ujson-3.2.0
The text was updated successfully, but these errors were encountered: