From 169029f33e9ee9477d266a6a172df3f9b79bff8e Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Wed, 6 Mar 2019 02:16:53 -0800 Subject: Merge in fallback encoding support --- isort/isort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isort/isort.py b/isort/isort.py index 60992bf7..73363e83 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -108,7 +108,7 @@ class SortImports(object): encoding_success = False if not encoding_success: - with io.open(file_path, new_line='') as file_to_import_sort: + with open(file_path, newline='') as file_to_import_sort: try: file_contents = file_to_import_sort.read() self.file_path = file_path -- cgit v1.2.1