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

Python2-3 compatibility fixes #31

Merged

Conversation

samspills
Copy link
Contributor

@samspills samspills commented Mar 23, 2019

This PR fixes two compatibility issues with python3 in the urlencode function.

  1. import print_function from future, and use print()
  2. use the imported quote instead of urllib.quote

@alphapapa
Copy link
Owner

Hi,

Thanks for the PR, and sorry for the delay.

Can you confirm that the code now works properly on both Python 2 and Python 3?

Thanks.

@samspills
Copy link
Contributor Author

No worries!! With my changes, I can run the shell script using either python 2.7.16 or python 3.7.3. Any intermediate versions of python should also work.

@samspills
Copy link
Contributor Author

@alphapapa Can this be merged?

@alphapapa alphapapa force-pushed the samspills/python2-3-compatible branch from 13a8761 to fbadc75 Compare May 12, 2019 10:51
Closes alphapapa#31.  Thanks to Sam Pillsworth (@samspills).
@alphapapa alphapapa force-pushed the samspills/python2-3-compatible branch from fbadc75 to 23a1336 Compare May 12, 2019 10:51
@alphapapa alphapapa merged commit 23a1336 into alphapapa:master May 12, 2019
@alphapapa
Copy link
Owner

Thanks for your patience!

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.

2 participants