# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1478384084 -19800 # Node ID ad40d307a9f03cdb71bc4cfef576618e826735fc # Parent 3874ddba1ab47d1ecd41bc37f0c2cce26b370317 py3: have pycompat.ospathsep and pycompat.ossep We needed bytes version of os.sep and os.pathsep in py3 as they return unicodes. diff -r 3874ddba1ab4 -r ad40d307a9f0 mercurial/pycompat.py --- a/mercurial/pycompat.py Sun Nov 06 03:33:22 2016 +0530 +++ b/mercurial/pycompat.py Sun Nov 06 03:44:44 2016 +0530 @@ -39,6 +39,8 @@ fsdecode = os.fsdecode # A bytes version of os.name. osname = os.name.encode('ascii') + ospathsep = os.pathsep.encode('ascii') + ossep = os.sep.encode('ascii') def sysstr(s): """Return a keyword str to be passed to Python functions such as @@ -85,6 +87,8 @@ return filename osname = os.name + ospathsep = os.pathsep + ossep = os.sep stringio = io.StringIO empty = _queue.Empty