py3: system-stringify file mode in commandserver.py
authorYuya Nishihara <yuya@tcha.org>
Tue, 16 Oct 2018 08:20:03 +0200
changeset 40359 558114fa7bc1
parent 40358 afbfcc4e3473
child 40360 dee73a97e132
py3: system-stringify file mode in commandserver.py # skip-blame just r'' prefixes
mercurial/commandserver.py
--- a/mercurial/commandserver.py	Tue Oct 16 07:57:40 2018 +0200
+++ b/mercurial/commandserver.py	Tue Oct 16 08:20:03 2018 +0200
@@ -344,8 +344,8 @@
     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)