py3: system-stringify list of attributes to be forwarded from commandserver.py
authorYuya Nishihara <yuya@tcha.org>
Tue, 16 Oct 2018 07:57:05 +0200
changeset 40357 efbf7de09d2a
parent 40356 756e9b1084fd
child 40358 afbfcc4e3473
py3: system-stringify list of attributes to be forwarded from commandserver.py # skip-blame just some r'' prefixes
mercurial/commandserver.py
--- a/mercurial/commandserver.py	Tue Oct 16 07:52:56 2018 +0200
+++ b/mercurial/commandserver.py	Tue Oct 16 07:57:05 2018 +0200
@@ -66,7 +66,7 @@
         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 @@
         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)