json.dumps() will emit UTF-8 str on Python 2 and 3. Use sysbytes to
force the .encode('utf-8') on Python 3 and no-op on Python 2.
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGfe11fc7e541f: py3: encode JSON str to bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.