D2139: py3: pass system string to socket.getservbyname
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sun Feb 11 22:57:51 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2139
AFFECTED FILES
mercurial/util.py
CHANGE DETAILS
diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -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)
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list