Skip to content

Commit

Permalink
encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
wisechengyi committed Jul 21, 2018
1 parent ac0bf83 commit 23eb42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pex/pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def _do_entry_point_verification(self):
raise self.InvalidEntryPoint("Failed to parse: `{}`".format(entry_point))

with named_temporary_file() as fp:
fp.write(import_statement)
fp.write(bytes(import_statement, 'utf-8'))
fp.close()
retcode = self.run([fp.name], env={'PEX_INTERPRETER': '1'})
if retcode != 0:
Expand Down

0 comments on commit 23eb42e

Please sign in to comment.