[PATCH 6 of 9] py3: system-stringify file mode in commandserver.py
Yuya Nishihara
yuya at tcha.org
Thu Oct 18 08:32:57 EDT 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1539670803 -7200
# Tue Oct 16 08:20:03 2018 +0200
# Node ID 9235215b40cf586e1a4af768380de580fe01edf0
# Parent 1bafbc9bc7b33101f19bd69350a8530289958468
py3: system-stringify file mode in commandserver.py
# skip-blame just r'' prefixes
diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py
--- a/mercurial/commandserver.py
+++ b/mercurial/commandserver.py
@@ -344,8 +344,8 @@ def _initworkerprocess():
random.seed()
def _serverequest(ui, repo, conn, createcmdserver):
- fin = conn.makefile('rb')
- fout = conn.makefile('wb')
+ fin = conn.makefile(r'rb')
+ fout = conn.makefile(r'wb')
sv = None
try:
sv = createcmdserver(repo, conn, fin, fout)
More information about the Mercurial-devel
mailing list