ls.py: avoid pylint warning