avoid using backslash and fix typo issue.
This commit is contained in:
parent
47c85e8833
commit
ac88d5aa91
2 changed files with 5 additions and 3 deletions
|
|
@ -722,7 +722,7 @@ def canceltask(environ, taskID):
|
|||
_redirect(environ, 'taskinfo?taskID=%i' % taskID)
|
||||
|
||||
def _sortByExtAndName(item):
|
||||
"""Sort filename tuples key funtion, first by extension, and then by name."""
|
||||
"""Sort filename tuples key function, first by extension, and then by name."""
|
||||
kRoot, kExt = os.path.splitext(os.path.basename(item[1]))
|
||||
return (kExt, kRoot)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue