diff options
author | hut <hut@lavabit.com> | 2010-03-28 17:33:11 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-28 17:33:11 +0200 |
commit | 385642efacc1e6946ee7e8f4415fa345e70388ec (patch) | |
tree | 30ee964940db6c6d68a13fda8aecb3380174219f /test/testdir/symlink | |
parent | bb2a6b16fb80952f4e7228437f5edd19cf5586da (diff) | |
download | ranger-385642efacc1e6946ee7e8f4415fa345e70388ec.tar.gz |
fsobject.directory: little optimization in sorting
1. no need to call path.basename.lower() since it's cached in path.basename_lower. 2. no need to convert a bool to int for arithmetic operations 3. path.is_directory is faster than an isinstance() check
Diffstat (limited to 'test/testdir/symlink')
0 files changed, 0 insertions, 0 deletions