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

Cannot handle Python 3 print() #39

Closed
impredicative opened this issue Oct 12, 2016 · 1 comment
Closed

Cannot handle Python 3 print() #39

impredicative opened this issue Oct 12, 2016 · 1 comment

Comments

@impredicative
Copy link

impredicative commented Oct 12, 2016

pytype is complaining about invalid syntax for use of print('something') in Python 3. It's been installed on Python 2.7, of course.

@matthiaskramm
Copy link
Contributor

pytype, by default, assumes you're running it on 2.7 sources.

Try invoking it as

pytype -V 3.5 file.py

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