Re: [PATCHv2 0/6] git-p4: some small fixes updated
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 12, 2018, 21:53 UTC
- Message-ID
- <CAPig+cQg5XE7peXDC-q0mkB9y6boK_iiM_55O6Po2PVmyZNLww@mail.gmail.com>
- In-Reply-To
- <CAE5ih79NoTpbkU50tts2GgLJ7Wy9WyBUgJncm3KXPLxuy0P0hQ@mail.gmail.com>
On Tue, Jun 12, 2018 at 5:49 PM, Luke Diamand <luke@diamand.org> wrote:
Show 6 quoted lines
> Thanks. While on the subject of git-p4, I thought I should mention > that I've been looking at getting git-p4 to work with Python3. > > I've got some low risk easy (mostly automated) changes which get it to > the point where it compiles. After that I have to figure out how to > fix the byte-vs-string unicode problem that Python3 brings. [...]
See how reposurgeon handles the problem[1]. It defines polystr() and polybytes() functions which coerce strings and byte sequences as needed. It's not pretty, but it works.
[1]: https://gitlab.com/esr/reposurgeon/blob/master/reposurgeon#L100