Show More
@@ -339,7 +339,7 b' def json(obj, paranoid=True):' | |||||
339 | raise error.ProgrammingError( |
|
339 | raise error.ProgrammingError( | |
340 | b'Mercurial only does output with bytes: %r' % obj |
|
340 | b'Mercurial only does output with bytes: %r' % obj | |
341 | ) |
|
341 | ) | |
342 |
elif util.safehasattr(obj, |
|
342 | elif util.safehasattr(obj, 'keys'): | |
343 | out = [ |
|
343 | out = [ | |
344 | b'"%s": %s' |
|
344 | b'"%s": %s' | |
345 | % (encoding.jsonescape(k, paranoid=paranoid), json(v, paranoid)) |
|
345 | % (encoding.jsonescape(k, paranoid=paranoid), json(v, paranoid)) |
General Comments 0
You need to be logged in to leave comments.
Login now