mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 07:52:38 +00:00
Depend on FilePath.asTextMode().
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
08f34a11ec
commit
bafac70c13
@ -297,12 +297,7 @@ def unicode_segments_from(base_fp, ancestor_fp):
|
|||||||
precondition(isinstance(base_fp, FilePath), base_fp=base_fp)
|
precondition(isinstance(base_fp, FilePath), base_fp=base_fp)
|
||||||
precondition(isinstance(ancestor_fp, FilePath), ancestor_fp=ancestor_fp)
|
precondition(isinstance(ancestor_fp, FilePath), ancestor_fp=ancestor_fp)
|
||||||
|
|
||||||
if hasattr(FilePath, 'asTextMode'):
|
return base_fp.asTextMode().segmentsFrom(ancestor_fp.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))
|
|
||||||
|
|
||||||
def unicode_platform():
|
def unicode_platform():
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user