Skip to content

Commit

Permalink
Fix wrap mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jun 26, 2019
1 parent 0ec2281 commit 28c395c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isort/isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ def _wrap(self, line):
output = "{0}{1}({2}{3}{4}{5})".format(
line, splitter, self.line_separator, cont_line,
"," if self.config['include_trailing_comma'] else "",
self.line_separator if wrap_mode in (WrapModes.VERTICAL_HANGING_INDENT,
WrapModes.VERTICAL_GRID_GROUPED)
self.line_separator if wrap_mode in (settings.WrapModes.VERTICAL_HANGING_INDENT,
settings.WrapModes.VERTICAL_GRID_GROUPED)
else "")
lines = output.split(self.line_separator)
if self.config['comment_prefix'] in lines[-1] and lines[-1].endswith(')'):
Expand Down

0 comments on commit 28c395c

Please sign in to comment.