1043
while len(head) >= len(base):
1044
if len(head) <= len(base) and head != base:
1045
raise errors.PathNotChild(rp, base)
1044
1046
if head == base:
1046
head, tail = os.path.split(head)
1048
head, tail = split(head)
1050
raise errors.PathNotChild(rp, base)
1053
return pathjoin(*reversed(s))