D5805: zeroconf: port to Python 3

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sun Feb 3 02:36:26 UTC 2019


yuja added a comment.


  >   1. advertise to browsers svc = Zeroconf.ServiceInfo('_http._tcp.local.',
  > - name + '._http._tcp.local.', +                               pycompat.bytestr(name + r'._http._tcp.local.'), server = host, port = port,
  > - properties = {'description': desc,
  > - 'path': "/" + path}, +                               properties = { +                                   'description': pycompat.bytestr(desc), +                                   'path': pycompat.bytestr(r"/" + path)}, address = localip, weight = 0, priority = 0) server.registerService(svc)
  >   1. advertise to Mercurial clients svc = Zeroconf.ServiceInfo('_hg._tcp.local.',
  > - name + '._hg._tcp.local.', +                               pycompat.bytestr(name + r'._hg._tcp.local.'), server = host, port = port,
  > - properties = {'description': desc,
  > - 'path': "/" + path}, +                               properties = { +                                   'description': pycompat.bytestr(desc), +                                   'path': pycompat.bytestr(r"/" + path)}, address = localip, weight = 0, priority = 0)
  
  I think `path` and `desc` are bytes since they come from `ui.config()`.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5805

To: indygreg, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list