Skip to content

Commit

Permalink
- Sync docs across readme and index.
Browse files Browse the repository at this point in the history
  - 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 <dbieber@google.com>
  • Loading branch information
dbieber committed Aug 29, 2017
1 parent 2c7b039 commit e76a10c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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._

Expand Down
2 changes: 1 addition & 1 deletion fire/core.py
Expand Up @@ -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', ' ')
Expand Down

0 comments on commit e76a10c

Please sign in to comment.