diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-06 02:07:52 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-06 02:07:52 -0800 |
commit | 130bf3ad6a16ed069df6dca87054b61a97d199d6 (patch) | |
tree | e62e0ef5928d7e65be1c9c0ef7d3bb69e9a3fa2f | |
parent | 83c3b63b15b478889a498c5d8fd19f22f8402f6e (diff) | |
download | isort-130bf3ad6a16ed069df6dca87054b61a97d199d6.tar.gz |
Fix newline argument
-rw-r--r-- | isort/isort.py | 2 |
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 |