-
Notifications
You must be signed in to change notification settings - Fork 363
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
indent='\t' causes an error #319
Labels
duplicate
This issue or pull request already exists
Comments
@KOLANICH Please could you include some code that reproduces the problem? What did you expect to happen? What actually happened? |
import json, ujson
# json.dumps({}, indent="\t") # OK
ujson.dumps({}, indent="\t") # not OK if I remember right. |
Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import json, ujson
>>> json.dumps({}, indent="\t")
'{}'
>>> ujson.dumps({}, indent="\t")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: an integer is required (got type str)
>>> |
Let's fold this into #317, which covers this and other non-integer indents. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: