hgext/zeroconf/__init__.py
changeset 43503 313e3a279828
parent 43500 6337b10c46bc
child 43506 9f70512ae2cf
--- a/hgext/zeroconf/__init__.py	Thu Nov 07 03:59:22 2019 -0800
+++ b/hgext/zeroconf/__init__.py	Thu Nov 07 13:18:19 2019 -0500
@@ -95,7 +95,7 @@
 
     hostname = socket.gethostname().split(r'.')[0]
     host = hostname + r".local"
-    name = r"%s-%s" % (hostname, name)
+    name = "%s-%s" % (hostname, name)
 
     # advertise to browsers
     svc = Zeroconf.ServiceInfo(
@@ -180,10 +180,10 @@
     server.close()
     for value in l.found.values():
         name = value.name[: value.name.index(b'.')]
-        url = r"http://%s:%s%s" % (
+        url = "http://%s:%s%s" % (
             socket.inet_ntoa(value.address),
             value.port,
-            value.properties.get(r"path", r"/"),
+            value.properties.get("path", "/"),
         )
         yield b"zc-" + name, pycompat.bytestr(url)