Merge pull request #16936 from ron-ulitsky/patch-1

This commit is contained in:
Suraj Shetty 2022-05-20 08:57:32 +05:30 committed by GitHub
commit 3234ad4a8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -574,7 +574,7 @@ class ImportFile:
######
def read_file(self, file_path):
extn = file_path.split(".")[1]
extn = os.path.splitext(file_path)[1][1:]
file_content = None
with io.open(file_path, mode="rb") as f: