avoid using backslash and fix typo issue.

This commit is contained in:
Franz Chih-Ping Hsieh 2018-02-07 18:20:41 +00:00 committed by Mike McLean
parent 47c85e8833
commit ac88d5aa91
2 changed files with 5 additions and 3 deletions

View file

@ -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)