FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

convert bytes to string in mono build when building for python 3 · sdpython/pythonnet@b41eaaa · GitHub

This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Repository navigation

Commit b41eaaa

Browse files
committed
convert bytes to string in mono build when building for python 3
1 parent c73acfd commit b41eaaa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎setup.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ def _check_output(*popenargs, **kwargs):
267267
if cmd is None:
268268
cmd = popenargs[0]
269269
raise CalledProcessError(retcode, cmd, output=output)
270+
if sys.version_info[2] > 2:
271+
return output.decode("ascii")
270272
return output
271273

272274

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL