Skip to content
Snippets Groups Projects
Commit d41e41d1 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

py3: add __bytes__() for mq.patchheader and make sure __str__ returns str

Before this patch, __str__() function for mq.patchheader class return bytes
which is not str on Python 3. So let's move that logic to __bytes__() and for
__str__() convert the return value of __bytes__() to str.

Differential Revision: https://phab.mercurial-scm.org/D2042
parent 83b9f96c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment