precondition(isinstance(base_fp, FilePath), base_fp=base_fp)
precondition(isinstance(ancestor_fp, FilePath), ancestor_fp=ancestor_fp)
- if hasattr(FilePath, 'asTextMode'):
- return base_fp.asTextMode().segmentsFrom(ancestor_fp.asTextMode())
- else:
- bpt, apt = (type(base_fp.path), type(ancestor_fp.path))
- _assert(bpt == apt, bpt=bpt, apt=apt)
- return map(_decode, base_fp.segmentsFrom(ancestor_fp))
+ return base_fp.asTextMode().segmentsFrom(ancestor_fp.asTextMode())
def unicode_platform():
"""