Mercurial > hg
diff mercurial/commandserver.py @ 40357:efbf7de09d2a
py3: system-stringify list of attributes to be forwarded from commandserver.py
# skip-blame just some r'' prefixes
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 16 Oct 2018 07:57:05 +0200 |
parents | 24e493ec2229 |
children | afbfcc4e3473 |
line wrap: on
line diff
--- 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)