Patchwork [4,of,9] py3: system-stringify list of attributes to be forwarded from commandserver.py

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

Comments

Yuya Nishihara - Oct. 18, 2018, 12:32 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1539669425 -7200
#      Tue Oct 16 07:57:05 2018 +0200
# Node ID 752fb338abc2fbe12fd6fc6a3f09c2fdb34ac88f
# Parent  b63525d6a2de8e3e965fb684a034f199a3f41a6d
py3: system-stringify list of attributes to be forwarded from commandserver.py

# skip-blame just some r'' prefixes

Patch

diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py
--- a/mercurial/commandserver.py
+++ b/mercurial/commandserver.py
@@ -66,7 +66,7 @@  class channeledoutput(object):
         self.out.flush()
 
     def __getattr__(self, attr):
-        if attr in ('isatty', 'fileno', 'tell', 'seek'):
+        if attr in (r'isatty', r'fileno', r'tell', r'seek'):
             raise AttributeError(attr)
         return getattr(self.out, attr)
 
@@ -150,7 +150,7 @@  class channeledinput(object):
         return l
 
     def __getattr__(self, attr):
-        if attr in ('isatty', 'fileno', 'tell', 'seek'):
+        if attr in (r'isatty', r'fileno', r'tell', r'seek'):
             raise AttributeError(attr)
         return getattr(self.in_, attr)