Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Add Python 3 support #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Python 3 support #34

wants to merge 1 commit into from

Conversation

legoktm
Copy link

@legoktm legoktm commented Jun 25, 2019

This was intially generated by the automatic 2to3 converter, and then
cleaned up by hand. It should be fully compatible with both Python 2.7
and Python 3+ (I tested on both).

print() is now a function, octal literals need an 'o' in them, and
subprocess.check_output() returns bytes, which needs to be decoded into
a str before comparison.


Python 2 goes EOL in a little over 6 months (https://pythonclock.org/), so I thought it would be a good time to add Python 3 support :)

This was intially generated by the automatic `2to3` converter, and then
cleaned up by hand. It should be fully compatible with both Python 2.7
and Python 3+ (I tested on both).

print() is now a function, octal literals need an 'o' in them, and
subprocess.check_output() returns bytes, which needs to be decoded into
a str before comparison.
@legoktm
Copy link
Author

legoktm commented Sep 1, 2019

Downstream Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937264

@legoktm
Copy link
Author

legoktm commented Nov 11, 2019

@micahflee anything I can do to move this along?

@fionn
Copy link

fionn commented Nov 20, 2019

I'm keen to see this happen too. If there's any extra work needed, I'm happy to help out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants