diff options
Diffstat (limited to 'isort/isort.py')
-rw-r--r-- | isort/isort.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/isort.py b/isort/isort.py index 5757c009..7609648e 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -884,7 +884,7 @@ class SortImports(object): self._in_top_comment = True return True elif self._in_top_comment: - if not line.startswith("#"): + if not line.startswith("#") or line in self._section_comments: self._in_top_comment = False self._first_comment_index_end = self.index - 1 |