fix a few isolated issues related to the py2 -> py3 move

This commit is contained in:
Ryan Petrello 2019-01-15 12:46:05 -05:00
parent 04da4503db
commit 3d7fcb3835
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -257,7 +257,7 @@ def handle_termination(pid, args, proot_cmd, is_cancel=True):
def __run__(private_data_dir):
buff = StringIO()
with open(os.path.join(private_data_dir, 'env'), 'r') as f:
with codecs.open(os.path.join(private_data_dir, 'env'), 'r', encoding='utf-8') as f:
for line in f:
buff.write(line)