Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple python3 compatibility fix #119

Merged
merged 2 commits into from Aug 23, 2015
Merged

Conversation

mexicarne
Copy link
Contributor

This resolves the package build with python 3.x

@@ -22,7 +22,11 @@
install_reqs += ['argparse']
tests_reqs += ['unittest2']

readme = open('README.rst').read()
if sys.version_info[0] == 3:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better check for >2. Assume that a future Python 4 is compatible unless stated otherwise.

To assume that future python versions will be compatible with this
syntax.

Suggested by: ThiefMaster
@tony
Copy link
Member

tony commented Aug 23, 2015

This is a python fix for py-tmuxp @ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201564.

@mexicarne Thank you. Want to update it to use >2 like @ThiefMaster mentioned?

@mexicarne
Copy link
Contributor Author

Yes, I just committed the updated check as was suggested.

@tony
Copy link
Member

tony commented Aug 23, 2015

@mexicarne Solid. Let's wait for tests to pass, then we'll update the changelog, bump the version and post on pypi. 😄

tony added a commit that referenced this pull request Aug 23, 2015
Add simple python3 compatibility fix
@tony tony merged commit 3b5149e into tmux-python:master Aug 23, 2015
@mexicarne
Copy link
Contributor Author

@tony So, all set. Please add some comment with your maintainer approval to bugzilla ticket after you done updating on pypi, so I can update it in FreeBSD ports. Thanks.

@ThiefMaster
Copy link
Contributor

@mexicarne not applicable here anymore since the PR is already merged, but generally it's better to amend and force-push simple improvements on a PR instead of adding a separate commit

@mexicarne
Copy link
Contributor Author

@ThiefMaster will do next time, thanks.

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

Successfully merging this pull request may close these issues.

None yet

3 participants