##// END OF EJS Templates
py3: convert popen() command arguments in hgclient to str on Windows...
Matt Harbison -
r41020:6a372f94 default
parent child Browse files
Show More
@@ -33,7 +33,12 b' def connectpipe(path=None, extraargs=())'
33 cmdline += [b'-R', path]
33 cmdline += [b'-R', path]
34 cmdline.extend(extraargs)
34 cmdline.extend(extraargs)
35
35
36 server = subprocess.Popen(cmdline, stdin=subprocess.PIPE,
36 def tonative(cmdline):
37 if os.name != r'nt':
38 return cmdline
39 return [arg.decode("utf-8") for arg in cmdline]
40
41 server = subprocess.Popen(tonative(cmdline), stdin=subprocess.PIPE,
37 stdout=subprocess.PIPE)
42 stdout=subprocess.PIPE)
38
43
39 return server
44 return server
General Comments 0
You need to be logged in to leave comments. Login now