From e76a10c0511ea4485b57543ccb966e7778213279 Mon Sep 17 00:00:00 2001 From: David Bieber Date: Tue, 29 Aug 2017 10:16:20 -0700 Subject: [PATCH] - Sync docs across readme and index. - Clean up ascii comment Copybara generated commit for Python Fire. PiperOrigin-RevId: 166864447 Change-Id: Iafe0bb00bc44b49175c7f138debe89013f2787dd Reviewed-on: https://team-review.git.corp.google.com/107481 Reviewed-by: David Bieber --- docs/index.md | 2 +- fire/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index b1a00694..4b58e63c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,4 @@ -# Python Fire +# Python Fire [![PyPI](https://img.shields.io/pypi/pyversions/Django.svg?style=plastic)](https://github.com/google/python-fire) _Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object._ diff --git a/fire/core.py b/fire/core.py index 9c723080..a7e3adaa 100644 --- a/fire/core.py +++ b/fire/core.py @@ -262,7 +262,7 @@ def _OneLineResult(result): return str(result).replace('\n', ' ') try: - # non-forced to ascii convert + # Don't force conversion to ascii. return json.dumps(result, ensure_ascii=False) except (TypeError, ValueError): return str(result).replace('\n', ' ')