forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Formatting with yapf failed if module file name is 'token.py' #706
Labels
Comments
DonJayamanne
added
bug
Issue identified by VS Code Team member as probable bug
awaiting 1-verification
area-formatting
labels
Feb 5, 2018
This does not seem to be specific to the file name. I get different error
autopep8 works fine |
This seems to only repro in Python 3. Comment says |
Works fine when the module renamed to |
Probably an issue with the reserved word. Closing the issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment data
VS Code version: 1.19.3
Python Extension version: 2018.1.0
Python Version: 3.6.4
OS and version: macOS 10.13.3
Actual behavior
Format module failed when file name is
token.py
.Expected behavior
The file will be formatted, no errors in output.
Steps to reproduce:
token.py
;Format Document
in vscode;Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: