[PATCH 1 of 2] py3: add b'' to a few strings in pycompat
Matt Harbison
mharbison72 at gmail.com
Thu Sep 13 23:48:18 UTC 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1536813542 14400
# Thu Sep 13 00:39:02 2018 -0400
# Node ID d87ed52203984e979551f7dfd29f906854b5c3c0
# Parent 93acc58fb2c12c9538cb973cec1b61a308bd84dd
py3: add b'' to a few strings in pycompat
These surfaced when disabling the source transformer to debug the problems in
win32.py.
diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py
--- a/mercurial/pycompat.py
+++ b/mercurial/pycompat.py
@@ -404,11 +404,11 @@ else:
rawinput = raw_input
getargspec = inspect.getargspec
-isjython = sysplatform.startswith('java')
+isjython = sysplatform.startswith(b'java')
-isdarwin = sysplatform == 'darwin'
-isposix = osname == 'posix'
-iswindows = osname == 'nt'
+isdarwin = sysplatform == b'darwin'
+isposix = osname == b'posix'
+iswindows = osname == b'nt'
def getoptb(args, shortlist, namelist):
return _getoptbwrapper(getopt.getopt, args, shortlist, namelist)
More information about the Mercurial-devel
mailing list