Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/blobstore.py @ 37149:c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
The trailing space looks weird when conditionalizing the line. The commas
shouldn't be necessary because of the indenting. The `lfs-test-server` isn't
sending all of the same items (notably, the "transfer" attribute is missing), so
having the commas means more lines need to be conditionalized.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 14 Mar 2018 23:34:08 -0400 |
parents | 56c7cd067477 |
children | b00bd974eef5 |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Thu Feb 22 23:33:52 2018 -0500 +++ b/hgext/lfs/blobstore.py Wed Mar 14 23:34:08 2018 -0400 @@ -249,7 +249,8 @@ response['objects'] = sorted(response['objects'], key=lambda p: p['oid']) self.ui.debug('%s\n' - % json.dumps(response, indent=2, sort_keys=True)) + % json.dumps(response, indent=2, + separators=('', ': '), sort_keys=True)) return response