summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-06 02:07:52 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-06 02:07:52 -0800
commit130bf3ad6a16ed069df6dca87054b61a97d199d6 (patch)
treee62e0ef5928d7e65be1c9c0ef7d3bb69e9a3fa2f
parent83c3b63b15b478889a498c5d8fd19f22f8402f6e (diff)
downloadisort-130bf3ad6a16ed069df6dca87054b61a97d199d6.tar.gz
Fix newline argument
-rw-r--r--isort/isort.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/isort.py b/isort/isort.py
index 10ab30ef..dc5cc7a6 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -111,7 +111,7 @@ class SortImports(object):
encoding_success = False
if not encoding_success:
- with io.open(file_path, new_line='') as file_to_import_sort:
+ with io.open(file_path, newline='') as file_to_import_sort:
try:
file_contents = file_to_import_sort.read()
self.file_path = file_path