Skip to content

Conversation

laanwj
Copy link
Member

@laanwj laanwj commented Mar 23, 2016

This makes github-merge.py the first developer tool to go all Python 3 (for context see #7717).

The changes are straightforward as the script already was from __future__ import division,print_function,unicode_literals.

However urllib2 changed name, and json will only accept unicode data not bytes.

This retains py2 compatibility for now: not strictly necessary as the script is not used by the build system (see #7723) - but it was easy.

@laanwj laanwj force-pushed the 2016_03_python_3_github_merge branch from b83d7ad to b4c7198 Compare March 23, 2016 11:47
This makes github-merge.py the first developer tool to go
all Python 3 (for context see bitcoin#7717).

The changes are straightforward as the script already was
`from __future__ import division,print_function,unicode_literals`.

However urllib2 changed name, and json will only accept unicode data not
bytes.

This retains py2 compatibility for now: not strictly necessary
as it's not used by the build system - but it was easy.
@laanwj laanwj force-pushed the 2016_03_python_3_github_merge branch from b4c7198 to f11c5a3 Compare March 23, 2016 12:15
@maflcko
Copy link
Member

maflcko commented Mar 24, 2016

utACK f11c5a3

@laanwj
Copy link
Member Author

laanwj commented Mar 29, 2016

I've been using this python3 version for about a week now, without problems.
so tested ACK on my own pull

@laanwj laanwj merged commit f11c5a3 into bitcoin:master Mar 29, 2016
laanwj added a commit that referenced this pull request Mar 29, 2016
f11c5a3 devtools: make github-merge.py use py3 (Wladimir J. van der Laan)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 19, 2017
f11c5a3 devtools: make github-merge.py use py3 (Wladimir J. van der Laan)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants