summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Soref <jsoref@users.noreply.github.com>2016-03-02 07:30:46 +0000
committerJosh Soref <jsoref@users.noreply.github.com>2016-03-02 07:30:46 +0000
commitf63f206239e657e9f1f3364cb605525475ed1951 (patch)
tree919cf3bd7c5c41217364d4e98676cb56bc9f8142
parent22ee0e7e755b2ab2a8e40f4a9983b467b88c941d (diff)
downloadisort-f63f206239e657e9f1f3364cb605525475ed1951.tar.gz
spelling: comment
-rw-r--r--isort/isort.py8
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)