Skip to content

Commit 58d0215

Browse files
committed
Use utf-8 so we support non-ascii module names
It's safe to assume that this is always utf-8-safe because we only ever use the function to send Python source code, which must be utf-8 encodable (and indeed utf-8 at rest)
1 parent 870891d commit 58d0215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

execnet/gateway_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def bootstrap_socket(io, id):
7575

7676
def sendexec(io, *sources):
7777
source = "\n".join(sources)
78-
io.write((repr(source) + "\n").encode("ascii"))
78+
io.write((repr(source) + "\n").encode("utf-8"))
7979

8080

8181
def fix_pid_for_jython_popen(gw):

0 commit comments

Comments
 (0)