bash_comp = f.read()
UnicodeDecodeError: 'cp932' codec can't decode byte 0x83 in position 612: illegal multibyte sequence
Python2.7.13でendcodingを付けた場合
with open(os.path.join('data', 'bash_completion.in'), 'rt', encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function