comparison cutils/util/walk.py @ 221:ca9d5a0dc9bb

Rename WalkDirEntry.sort_key and WalkDirEntry.alt_sort_key
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 25 Jan 2025 13:58:33 +0100
parents 3a85f7bbe0b1
children 188f448ab5e9
comparison
equal deleted inserted replaced
220:8db78850d800 221:ca9d5a0dc9bb
293 def from_readlink(cls_, path): 293 def from_readlink(cls_, path):
294 w = cls_(os.path.basename(path), path) 294 w = cls_(os.path.basename(path), path)
295 return w 295 return w
296 296
297 @staticmethod 297 @staticmethod
298 def sort_key(entry): 298 def sort_key_fs(entry):
299 return entry.alt_fsname # because it should never throw 299 return entry.alt_fsname # because it should never throw
300 300
301 @staticmethod 301 @staticmethod
302 def alt_sort_key(entry): 302 def sort_key_u8(entry):
303 return entry.alt_u8name # because it should never throw 303 return entry.alt_u8name # because it should never throw
304 304
305 if PY2: 305 if PY2:
306 306
307 @staticmethod 307 @staticmethod