diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-06 01:05:03 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-06 01:05:03 -0800 |
commit | 16daa7bcf90172408f8a8742773364ff2e41f7f3 (patch) | |
tree | a253e26f66ecd04ade24b4cf211036962861aeb8 | |
parent | 773a8e0350db9751aae662b2640e19f3dda9fb1f (diff) | |
download | isort-16daa7bcf90172408f8a8742773364ff2e41f7f3.tar.gz |
Fix open usage
-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 0acadaf8..76eac83d 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -98,7 +98,7 @@ class SortImports(object): file_contents = None elif not file_contents: file_encoding = coding_check(file_path) - with io.open(file_path, encoding=file_encoding, newline='') as file_to_import_sort: + with open(file_path, encoding=file_encoding, newline='') as file_to_import_sort: try: file_contents = file_to_import_sort.read() self.file_path = file_path |