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

Line break and tab indentation makes wrong fix #1714

Closed
PicoSushi opened this issue Apr 27, 2021 · 1 comment · Fixed by #1717
Closed

Line break and tab indentation makes wrong fix #1714

PicoSushi opened this issue Apr 27, 2021 · 1 comment · Fixed by #1717
Labels
bug Something isn't working

Comments

@PicoSushi
Copy link

isort causes odd fixing with import line which contains line berak and tab indentation.

before isort (Notice that this code uses Tab indentation, not spaces.)

from sys \
	import version
print(version)

after isort

from sys import importversion

print(version)

expected

from sys import version

print(version)

Versions

  • macOS Big Sur 11.2.3
  • Python 3.9.4
  • isort 5.7.0
@anirudnits
Copy link
Collaborator

This problem persists with the current 5.8.0 version as well.

@anirudnits anirudnits added the bug Something isn't working label Apr 29, 2021
anirudnits added a commit to anirudnits/isort that referenced this issue Apr 29, 2021
This was referenced Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants