git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/6] git-p4: small step towards Python3 support
@ 2018-06-19  8:04 Luke Diamand
  2018-06-19  8:04 ` [PATCH 1/6] git-p4: python3: replace <> with != Luke Diamand
  0 siblings, 1 reply; 8+ messages in thread
From: Luke Diamand @ 2018-06-19  8:04 UTC (permalink / raw)
  To: git
  Cc: SZEDER Gábor, Romain Merland, Miguel Torroja, Eric Sunshine,
	Lex Spoon, Andrey Mazo, Luke Diamand

This patchset is a first small step towards Python3 support for
git-p4.py.

These are all the nice easy changes which can almost be done
automatically using 2to3.

After these changes, it compiles using Python3, but fails to run.
That's because of the bytes vs string change in Python3. Fixing that is
quite a bit harder (but not impossible).

I have some further changes to address this, but they are quite a bit
more invasive, and not actually working yet. It's based very loosely on the
"polystr()" suggestion from Eric on this list.

It still works fine with Python2.7 and Python2.6.

Luke Diamand (6):
  git-p4: python3: replace <> with !=
  git-p4: python3: replace dict.has_key(k) with "k in dict"
  git-p4: python3: remove backticks
  git-p4: python3: basestring workaround
  git-p4: python3: use print() function
  git-p4: python3: fix octal constants

 git-p4.py | 348 ++++++++++++++++++++++++++++--------------------------
 1 file changed, 182 insertions(+), 166 deletions(-)

-- 
2.18.0.rc1.242.g61856ae69a


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-06-19  8:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19  8:04 [PATCH 0/6] git-p4: small step towards Python3 support Luke Diamand
2018-06-19  8:04 ` [PATCH 1/6] git-p4: python3: replace <> with != Luke Diamand
2018-06-19  8:04   ` [PATCH 2/6] git-p4: python3: replace dict.has_key(k) with "k in dict" Luke Diamand
2018-06-19  8:04     ` [PATCH 3/6] git-p4: python3: remove backticks Luke Diamand
2018-06-19  8:04       ` [PATCH 4/6] git-p4: python3: basestring workaround Luke Diamand
2018-06-19  8:04         ` [PATCH 5/6] git-p4: python3: use print() function Luke Diamand
2018-06-19  8:04           ` [PATCH 6/6] git-p4: python3: fix octal constants Luke Diamand
2018-06-19  8:15     ` [PATCH 2/6] git-p4: python3: replace dict.has_key(k) with "k in dict" Eric Sunshine

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).