Mercurial > hg
changeset 50902:defd2b3eafdb
mq: use sysstr to check for attribute access
We do not need bytes here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 31 Aug 2023 16:57:16 +0200 |
parents | 6543469a351e |
children | e054898624db |
files | mercurial/chgserver.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/chgserver.py Wed Aug 30 12:51:27 2023 +0200 +++ b/mercurial/chgserver.py Thu Aug 31 16:57:16 2023 +0200 @@ -260,7 +260,7 @@ from . import dispatch # avoid cycle newui = srcui.__class__.load() - for a in [b'fin', b'fout', b'ferr', b'environ']: + for a in ['fin', 'fout', 'ferr', 'environ']: setattr(newui, a, getattr(srcui, a)) if util.safehasattr(srcui, '_csystem'): newui._csystem = srcui._csystem @@ -348,9 +348,9 @@ _iochannels = [ # server.ch, ui.fp, mode - (b'cin', b'fin', 'rb'), - (b'cout', b'fout', 'wb'), - (b'cerr', b'ferr', 'wb'), + ('cin', 'fin', 'rb'), + ('cout', 'fout', 'wb'), + ('cerr', 'ferr', 'wb'), ]