diff mercurial/pycompat.py @ 36677:6585ac350fd9

py3: make os.curdir a bytes
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Mar 2018 12:36:05 -0500
parents 052351e3e1cd
children dbae581010ea
line wrap: on
line diff
--- a/mercurial/pycompat.py	Sat Mar 03 12:34:35 2018 -0500
+++ b/mercurial/pycompat.py	Sat Mar 03 12:36:05 2018 -0500
@@ -48,6 +48,7 @@
 
     fsencode = os.fsencode
     fsdecode = os.fsdecode
+    oscurdir = os.curdir.encode('ascii')
     oslinesep = os.linesep.encode('ascii')
     osname = os.name.encode('ascii')
     ospathsep = os.pathsep.encode('ascii')
@@ -321,6 +322,7 @@
     strkwargs = identity
     byteskwargs = identity
 
+    oscurdir = os.curdir
     oslinesep = os.linesep
     osname = os.name
     ospathsep = os.pathsep