Mercurial > hgrepos > Python > apps > py-cutils
diff 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 |
line wrap: on
line diff
--- a/cutils/util/walk.py Sat Jan 25 13:50:21 2025 +0100 +++ b/cutils/util/walk.py Sat Jan 25 13:58:33 2025 +0100 @@ -295,11 +295,11 @@ return w @staticmethod - def sort_key(entry): + def sort_key_fs(entry): return entry.alt_fsname # because it should never throw @staticmethod - def alt_sort_key(entry): + def sort_key_u8(entry): return entry.alt_u8name # because it should never throw if PY2:
