diff options
author | Josh Soref <jsoref@users.noreply.github.com> | 2016-03-02 07:30:46 +0000 |
---|---|---|
committer | Josh Soref <jsoref@users.noreply.github.com> | 2016-03-02 07:30:46 +0000 |
commit | f63f206239e657e9f1f3364cb605525475ed1951 (patch) | |
tree | 919cf3bd7c5c41217364d4e98676cb56bc9f8142 | |
parent | 22ee0e7e755b2ab2a8e40f4a9983b467b88c941d (diff) | |
download | isort-f63f206239e657e9f1f3364cb605525475ed1951.tar.gz |
spelling: comment
-rw-r--r-- | isort/isort.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/isort/isort.py b/isort/isort.py index cc956eb1..614ba4ec 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -799,10 +799,10 @@ class SortImports(object): ) root = self.imports[placed_module][import_type] for import_name in imports: - associated_commment = nested_comments.get(import_name) - if associated_commment: - self.comments['nested'].setdefault(import_from, {})[import_name] = associated_commment - comments.pop(comments.index(associated_commment)) + associated_comment = nested_comments.get(import_name) + if associated_comment: + self.comments['nested'].setdefault(import_from, {})[import_name] = associated_comment + comments.pop(comments.index(associated_comment)) if comments: self.comments['from'].setdefault(import_from, []).extend(comments) |