~ubuntu-branches/ubuntu/saucy/click/saucy-proposed

« back to all changes in this revision

Viewing changes to click/commands/info.py

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-07-30 15:14:16 UTC
  • Revision ID: package-import@ubuntu.com-20130730151416-ajoe6kqrb59kkamo
Tags: 0.2.10
* Force click's stdout encoding to UTF-8 regardless of the locale.
* Don't encode non-ASCII characters in JSON dumps.
* Treat manifests as UTF-8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
                "manifest", encoding="UTF-8") as manifest:
36
36
            manifest_json = json.loads(manifest.read())
37
37
            print(json.dumps(
38
 
                manifest_json, sort_keys=True, indent=4,
 
38
                manifest_json, ensure_ascii=False, sort_keys=True, indent=4,
39
39
                separators=(",", ": ")))
40
40
    return 0