summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-28 17:33:11 +0200
committerhut <hut@lavabit.com>2010-03-28 17:33:11 +0200
commit385642efacc1e6946ee7e8f4415fa345e70388ec (patch)
tree30ee964940db6c6d68a13fda8aecb3380174219f /ranger.py
parentbb2a6b16fb80952f4e7228437f5edd19cf5586da (diff)
downloadranger-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 'ranger.py')
0 files changed, 0 insertions, 0 deletions