Be consistent on how to open a file
chinyeungli opened this issue · 0 comments
chinyeungli commented
We have some code to open file using codec library, and some are using io
with codecs.open(file_path, 'rb', encoding='utf-8-sig', errors='replace') as txt:
or
with io.open(location, encoding='utf-8', errors='replace') as txt:
We need to be consistance on this.