Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/common.py @ 30630:bcf4a975f93d
py3: replace os.altsep with pycompat.altsep
All the occurences of os.altsep are replaced with pycompat.altsep which
returns bytes.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Dec 2016 01:17:12 +0530 |
parents | bb77654dc7ae |
children | f1c9fafcbf46 |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Sun Dec 18 00:52:05 2016 +0530 +++ b/mercurial/hgweb/common.py Sun Dec 18 01:17:12 2016 +0530 @@ -143,7 +143,7 @@ for part in parts: if (part in ('', os.curdir, os.pardir) or pycompat.ossep in part or - os.altsep is not None and os.altsep in part): + pycompat.osaltsep is not None and pycompat.osaltsep in part): return fpath = os.path.join(*parts) if isinstance(directory, str):