Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Work additionally with Python 3.x#4

Merged
jarun merged 1 commit intojarun:masterfrom
Narrat:support/py3
Aug 25, 2015
Merged

Work additionally with Python 3.x#4
jarun merged 1 commit intojarun:masterfrom
Narrat:support/py3

Conversation

@Narrat
Copy link
Copy Markdown
Contributor

@Narrat Narrat commented Aug 23, 2015

Changes:

  • use the print function from Future. Print statements would have worked with parenthesis around it, but not if the , param was used (print("", end='')).
  • Change in string and input handling made it necessary to differ between py versions
  • Module loading. Some module names changed. Catched via trial and error

Necessary changes to make it work with py2 and py3.
Please test it thoroughly before merging in case I forgot something to change. For me it worked with py2 and py3, but you never know

Changes:
 * use the print function from Future. Print statements would have worked with parenthesis around it, but not if the , param was used (print("", end='')).
 * Change in string and input handling made it necessary to differ between py versions
 * Module loading. Some module names changed. Catched via trial and error
@Narrat
Copy link
Copy Markdown
Contributor Author

Narrat commented Aug 23, 2015

Because of encoding issues that will arise I prepared another commit and branch, but I wait until this got merged, or not.

Commit: https://github.com/Narrat/google-cli/commit/429dccac6ea5e1a390faed47de867f421a6f7c56

jarun added a commit that referenced this pull request Aug 25, 2015
Work additionally with Python 3.x
@jarun jarun merged commit e615268 into jarun:master Aug 25, 2015
@jarun
Copy link
Copy Markdown
Owner

jarun commented Aug 25, 2015

Seems clean in my tests. Thank you!

@jarun
Copy link
Copy Markdown
Owner

jarun commented Aug 25, 2015

Please raise the pull request for the encoding change. Just make sure that it doesn't break the existing search options (-s, -n, -f, -t) and navigation.

@Narrat Narrat deleted the support/py3 branch August 25, 2015 07:35
jarun added a commit that referenced this pull request Mar 9, 2016
Work additionally with Python 3.x
@lock lock Bot locked and limited conversation to collaborators Nov 15, 2019
john-peterson pushed a commit to john-peterson/googler that referenced this pull request Jan 20, 2025
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