Reported bug with utf-8 strings
[be.git] / .be / bugs / 0cad2ac6-76ef-4a88-abdf-b2e02de76f5c / comments / 202e0dc6-61bf-4b17-a8bd-f8a27482cb68 / body
1 Fixed another bug in git.strip_git().  lstrip() wasn't what I had thought.
2
3 >>> "/a.b/.be/x/y".lstrip("/a.b/")
4 'e/x/y'
5
6 So I went back to just droping the first N chars
7
8 >>> "/a.b/.be/x/y"[len("/a.b/"):]
9 '.be/x/y'
10