[PATCH 4 of 9] py3: system-stringify list of attributes to be forwarded from commandserver.py
Yuya Nishihara
yuya at tcha.org
Thu Oct 18 08:32:55 EDT 2018
# HG changeset patch
# User Yuya Nishihara <yuya at 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
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)
More information about the Mercurial-devel
mailing list