diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-05-12 16:27:09 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-05-12 16:27:09 -0700 |
commit | 7c72ba21dfc651096beb23b570e5e50180f05e35 (patch) | |
tree | 790db79bec70e2f8fb77785ec88aed22e2cf7135 | |
parent | 518513fd8f2d6c79bdcbe5acc9a577953385a40a (diff) | |
download | isort-7c72ba21dfc651096beb23b570e5e50180f05e35.tar.gz |
Remove spaces on empty lines
-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 a91abed3..3ab68c2d 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -180,12 +180,12 @@ class SortImports(object): for add_import in self.add_imports: self.in_lines.append(add_import) self.number_of_lines = len(self.in_lines) - + if not extension: self.extension = file_name.split('.')[-1] if file_name else "py" else: self.extension = extension - + self.out_lines = [] self.comments = {'from': {}, 'straight': {}, 'nested': {}, 'above': {'straight': {}, 'from': {}}} self.imports = OrderedDict() |