summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-06 02:16:53 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-06 02:16:53 -0800
commit169029f33e9ee9477d266a6a172df3f9b79bff8e (patch)
treeb88e757aaa52f42d2fabe9ee51e5ca4add356a9d
parent89859f152bde78cd1aa0fd86ec5265a76d4beb72 (diff)
downloadisort-169029f33e9ee9477d266a6a172df3f9b79bff8e.tar.gz
Merge in fallback encoding support
-rw-r--r--isort/isort.py2
1 files changed, 1 insertions, 1 deletions
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