git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-p4, and python2 EOL

From
Luke Diamand <luke@diamand.org>
Date
Aug 28, 2019, 08:49 UTC
Message-ID
<CAE5ih79dF7LJSp=hUgj_r2XUmWKYnU3XgSReSjOetG8Sek599A@mail.gmail.com>

We're coming up on when Python2 is end-of-lifed - we have until January 1st 2020.

git-p4 uses python2, and doesn't work under python3 at all.

The problem is the conversions between Python3 unicode strings and git (utf-8) and p4 (utf-8, except when it isn't).

I had a go at fixing this here:
https://github.com/luked99/git/commits/git-p4-python3-final-showdown
You can see from the comments that I wasn't really finding it straightforward.

I think I know a bit more about the problem now, but before I start having another go at fixing this, I wondered if anyone else had any thoughts on this, or even better, some time to spend on this.

Thanks Luke

Next: Andrey
Message 1 of 2 in “git-p4, and python2 EOL”
  1. Luke DiamandAug 28, 2019
  2. AndreyAug 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.