Re: [Python-Dev] [BUG] Trailing spaces in pretty-printed JSON

2012-11-15 Thread Leo
On 2012-10-14 02:06 +0800, Xavier Morel wrote: > 1. Why didn't you report that on the tracker? Reported: http://bugs.python.org/issue16476 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] [BUG] Trailing spaces in pretty-printed JSON

2012-10-13 Thread Chris Angelico
On Sat, Oct 13, 2012 at 5:40 PM, Leo wrote: > Use this script on a json file and observe all the trailing spaces > generated. (screenshot attached.) Confirmed as still the case in Python 3 (specifically, with an early alpha of 3.3 and with 3.2 for Windows). It's because the item separator is '; '

Re: [Python-Dev] [BUG] Trailing spaces in pretty-printed JSON

2012-10-13 Thread Xavier Morel
On 2012-10-13, at 08:40 , Leo wrote: > Use this script on a json file and observe all the trailing spaces > generated. (screenshot attached.) 1. Why didn't you report that on the tracker? 2. Why are you rewriting json.tool? ___ Python-Dev mailing list P

[Python-Dev] [BUG] Trailing spaces in pretty-printed JSON

2012-10-13 Thread Leo
Use this script on a json file and observe all the trailing spaces generated. (screenshot attached.) #!/usr/bin/env python """ Pretty print json file. """ if __name__ == '__main__': import sys import json if '-h' in sys.argv or '--help' in sys.argv: print "Usage: ppjson "