diff options
author | Jeremiah Paige <jeremiahcpaige@gmail.com> | 2019-02-25 13:41:24 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-25 14:31:31 -0800 |
commit | 79a87b36dd280ea1bf041aff126cb4fc3f0aaead (patch) | |
tree | f8c82a5f3748ff48db002f00b85f4fef3aa41094 /isort | |
parent | bfabca6bd1c178cda98de41149f55933cfe37e65 (diff) | |
download | isort-79a87b36dd280ea1bf041aff126cb4fc3f0aaead.tar.gz |
Merge in fix
Diffstat (limited to 'isort')
-rw-r--r-- | isort/isort.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/isort/isort.py b/isort/isort.py index 697cc7a7..e0995754 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -669,17 +669,13 @@ class SortImports(object): return statement def _output_vertical_hanging_indent(self, statement, imports, white_space, indent, line_length, comments): - trailing = "" - if len(imports) > 1 and self.config['include_trailing_comma']: - trailing = ',' - return "{0}({1}{2}{3}{4}{5}{2})".format( statement, self._add_comments(comments), self.line_separator, indent, ("," + self.line_separator + indent).join(imports), - trailing, + "," if self.config['include_trailing_comma'] else "", ) def _output_vertical_grid_common(self, statement, imports, white_space, indent, line_length, comments, |