[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public
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

bpo-27413: json.tool: Add --no-ensure-ascii option. #17472

Merged
merged 1 commit into from Dec 6, 2019

Conversation

Copy link
Contributor

wimglenn commented Dec 5, 2019

Added ability to pass through ensure_ascii options to json.dumps in the json.tool command-line interface.

Some motivation: https://stackoverflow.com/questions/52712674/how-to-use-json-tool-from-the-shell-to-validate-and-pretty-print-language-files

https://bugs.python.org/issue27413

Lib/test/test_json/test_tool.py Outdated Show resolved Hide resolved
methane changed the title bpo-27413: Add an option to json.tool to dump non-ASCII characters. bpo-27413: json.tool: Add --no-ensure-ascii option. Dec 5, 2019
methane approved these changes Dec 5, 2019
Copy link
Member

methane commented Dec 5, 2019

Test is failing because stdout is not UTF-8 on Windows.
Please use a temporary file for output.

Lib/test/test_json/test_tool.py Outdated Show resolved Hide resolved
…on.dumps in the json.tool command-line-interface.
methane merged commit efefe25 into python:master Dec 6, 2019
wimglenn deleted the json_tool_again branch Dec 6, 2019
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants