--- a/mercurial/pure/osutil.py Sun Nov 06 03:44:44 2016 +0530
+++ b/mercurial/pure/osutil.py Sun Nov 06 04:10:33 2016 +0530
@@ -14,7 +14,11 @@
import stat as statmod
import sys
-from . import policy
+from . import (
+ policy,
+ pycompat,
+)
+
modulepolicy = policy.policy
policynocffi = policy.policynocffi
@@ -51,8 +55,8 @@
'''
result = []
prefix = path
- if not prefix.endswith(os.sep):
- prefix += os.sep
+ if not prefix.endswith(pycompat.ossep):
+ prefix += pycompat.ossep
names = os.listdir(path)
names.sort()
for fn in names: