Update main.py for Python2 and Python3 user input support#71
Update main.py for Python2 and Python3 user input support#71erickoledadevrel merged 5 commits intogoogleworkspace:masterfrom
Conversation
Add support for both Python2/Python3 rather than asking user to manually change the code as suggested in this comment: # If you can't use Python 3.x, please change "input" to "raw_input"
|
Thanks for the contribution? Looks like they are some linting errors reported by Travis. Can you please resolve those? |
Update to follow proper linting/style by using `six` library, because it is against standards to redefine builtin `input()`
Update to use `builtins` instead of `six`, but might require `pip install future`
Back to `six` library
third party import "import six" should be placed before "import httplib2" (wrong-import-order)
|
Yes sorry, had to run to a meeting before checking the Travis results. Turns out most accepted methods go against "redefining builtin input", so I used |
|
Awesome, thanks for doing the work to find a compatible solution. Should the |
|
I ran it inside of an Ubuntu18.04 Docker container that only installs python and pip, and then does |
Add support for both Python2/Python3 rather than asking user to manually change the code as suggested in this comment: # If you can't use Python 3.x, please change "input" to "raw_input"