This line doesn't do what the comment says:
|
# Remove trailing whitespace from all the entries |
|
entries = [e.strip() for e in args.entries] |
As it is now, it will remove all whitespaces on both sides of the string. Should it only remove the trailing one (str.rstrip())? Should it remove only one character or all whitespaces?
Example:
python -m natsort 'tmp/a57/path2 ' ' tmp/a23/path1' ' tmp/a1/path1'
tmp/a1/path1
tmp/a23/path1
tmp/a57/path2
This line doesn't do what the comment says:
natsort/natsort/__main__.py
Lines 180 to 181 in dc1edbb
As it is now, it will remove all whitespaces on both sides of the string. Should it only remove the trailing one (
str.rstrip())? Should it remove only one character or all whitespaces?Example: