diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2018-02-04 12:04:33 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2018-02-04 12:04:33 -0800 |
commit | 2cb2037ccf5c2baea302c73e762303987076f289 (patch) | |
tree | 4503fbed37202dd478afc0f4c458624c2aff493e | |
parent | f3c35627dbb3130bd8349148df112e496b32bb6e (diff) | |
download | isort-feature/fix-issue-662.tar.gz |
Implement fix for issue #662feature/fix-issue-662
-rw-r--r-- | isort/isort.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isort/isort.py b/isort/isort.py index 0aae5e14..9921958a 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -844,9 +844,9 @@ class SortImports(object): self._in_top_comment = False while not self._at_end(): line = self._get_line() - line = line.replace("from.import", "from . import") + line = line.replace("from.import ", "from . import ") line = line.replace("\t", " ").replace('import*', 'import *') - line = line.replace(" .import", " . import") + line = line.replace(" .import ", " . import ") statement_index = self.index skip_line = self._skip_line(line) |