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

Remove unused imports leaves semicolons behind #4255

Closed
huguesv opened this issue May 24, 2018 · 0 comments
Closed

Remove unused imports leaves semicolons behind #4255

huguesv opened this issue May 24, 2018 · 0 comments
Labels

Comments

@huguesv
Copy link
Contributor

huguesv commented May 24, 2018

Input:

import array; import glob; import math
print(math.cos(0))

Right click in editor, Remove Imports->All Scopes
Result is invalid code:

;; import math
print(math.cos(0))

Running the code after gives this error:

  File "C:\Users\huvalo\source\repos\PythonApplication129\PythonApplication129\PythonApplication129.py", line 1
    ;; import math
    ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants