Patchwork [6,of,9] py3: system-stringify file mode in commandserver.py

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 18, 2018, 12:32 p.m.
Message ID <9235215b40cf586e1a4a.1539865977@mimosa>
Download mbox | patch
Permalink /patch/36138/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 18, 2018, 12:32 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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)