Skip to content

Commit

Permalink
Merge pull request #27 from timothycrosley/feature/imports-at-end-of-…
Browse files Browse the repository at this point in the history
…file-are-okay

Imports at the end of the file do no longer cause an issue with isort, a...
  • Loading branch information
timothycrosley committed Sep 14, 2013
2 parents 6d28902 + 8ee7076 commit cbd63e2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions isort/isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,6 @@ def _parse(self):
for module in imports:
self.imports[self.place_module(module)][import_type].add(module)

if self._at_end():
if self.file_path:
print(self.file_path + ": Either you have an import at the end of your file, or something"
" went horribly wrong!",
file=stderr)
sys.exit(1)

else:
self.out_lines.append(line)

0 comments on commit cbd63e2

Please sign in to comment.