Skip to content
Snippets Groups Projects
Commit ad40d307a9f0 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

py3: have pycompat.ospathsep and pycompat.ossep

We needed bytes version of os.sep and os.pathsep in py3 as they return
unicodes.
parent 3874ddba1ab4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment