summaryrefslogtreecommitdiff
path: root/isort/wrap.py
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-11-05 22:25:10 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-11-05 22:25:10 -0800
commit5a814c193fdae0b25499d01da729e0542f1175c6 (patch)
tree943ef0573617e563f382823718d22dc04f229175 /isort/wrap.py
parentdaa27b973b484a88994c3bdcbb5bc5d29b8ac84d (diff)
downloadisort-5a814c193fdae0b25499d01da729e0542f1175c6.tar.gz
Fix custom wrap mode per import statement support
Diffstat (limited to 'isort/wrap.py')
-rw-r--r--isort/wrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/wrap.py b/isort/wrap.py
index b175beee..352f791f 100644
--- a/isort/wrap.py
+++ b/isort/wrap.py
@@ -16,7 +16,7 @@ def import_statement(
multi_line_output: Optional[Modes]=None
) -> str:
"""Returns a multi-line wrapped form of the provided from import statement."""
- formatter = formatter_from_string(multi_line_output or config.multi_line_output.name)
+ formatter = formatter_from_string((multi_line_output or config.multi_line_output).name)
dynamic_indent = " " * (len(import_start) + 1)
indent = config.indent
line_length = config.wrap_length or config.line_length