# HG changeset patch # User Pulkit Goyal # Date 1536071529 -10800 # Node ID cbfab495dbcfde069e45a2af087c215f1e99097d # Parent 3694c9aaf5e4254b405f3a1ca8e27e4b05960ba7 py3: add missing b'' prefixes in tests/badserverext.py # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D4456 diff -r 3694c9aaf5e4 -r cbfab495dbcf tests/badserverext.py --- a/tests/badserverext.py Tue Sep 04 17:19:30 2018 +0300 +++ b/tests/badserverext.py Tue Sep 04 17:32:09 2018 +0300 @@ -238,10 +238,10 @@ self._ui = ui super(badserver, self).__init__(ui, *args, **kwargs) - recvbytes = self._ui.config('badserver', 'closeafterrecvbytes') + recvbytes = self._ui.config(b'badserver', b'closeafterrecvbytes') recvbytes = recvbytes.split(',') self.closeafterrecvbytes = [int(v) for v in recvbytes if v] - sendbytes = self._ui.config('badserver', 'closeaftersendbytes') + sendbytes = self._ui.config(b'badserver', b'closeaftersendbytes') sendbytes = sendbytes.split(',') self.closeaftersendbytes = [int(v) for v in sendbytes if v] @@ -261,7 +261,7 @@ # Called to accept() a pending socket. def get_request(self): - if self._ui.configbool('badserver', 'closebeforeaccept'): + if self._ui.configbool(b'badserver', b'closebeforeaccept'): self.socket.close() # Tells the server to stop processing more requests.