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

Python3 Compatibility #1

Closed
printfinn opened this issue Mar 14, 2018 · 1 comment
Closed

Python3 Compatibility #1

printfinn opened this issue Mar 14, 2018 · 1 comment

Comments

@printfinn
Copy link

printfinn commented Mar 14, 2018

Dude, this is nice!
I used your code to complete my garage door remote control webapp.
While I met some little issues,

  1. In Python 3, print is now a function, and followed by parenthesis ( ).
  2. There seems to be some problem with the argument 'VERSION', I have to delete this parameter while calling the function.

After these two fixes, it works perfectly on Python 3.
Thanks so much for your code, after all!

@loblab
Copy link
Owner

loblab commented May 26, 2018

Thanks for your feedback.

Python3 is supported now (in ver 0.7), and argument 'VERSION' is also supported.

argparse moved argument 'version' out from constructor. Just add it manually.

parser.add_argument('-v', '--version', action='version', version=VERSION)

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

No branches or pull requests

2 participants