mercurial/util.py
changeset 36038 15c8c4ac5d9c
parent 35900 72de5c504833
child 36128 02ed94dd9fd6
--- a/mercurial/util.py	Sun Feb 11 12:42:10 2018 -0800
+++ b/mercurial/util.py	Sun Feb 11 12:55:50 2018 -0800
@@ -2717,7 +2717,7 @@
         pass
 
     try:
-        return socket.getservbyname(port)
+        return socket.getservbyname(pycompat.sysstr(port))
     except socket.error:
         raise Abort(_("no port number associated with service '%s'") % port)