Skip to content
Snippets Groups Projects
Commit 21be76e0 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

py3: use bytes.endswith() instead of bytes[n]

parent be441eb6
Branches
Tags
No related merge requests found
......@@ -2,6 +2,7 @@
test-add.t
test-addremove-similar.t
test-addremove.t
test-alias.t
test-amend-subrepo.t
test-amend.t
test-ancestor.py
......
......@@ -226,7 +226,7 @@
if cwd != root:
canonpath(root, root, myname, auditor)
relpath = util.pathto(root, cwd, '')
if relpath[-1] == pycompat.ossep:
if relpath.endswith(pycompat.ossep):
relpath = relpath[:-1]
hint = (_("consider using '--cwd %s'") % relpath)
except error.Abort:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment