Skip to content

Commit d390f4b

Browse files
committed
py3 compat
1 parent 32346c7 commit d390f4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/draft2tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import re
99
import shutil
1010
import tempfile
11-
from functools import partial
11+
from functools import partial, cmp_to_key
1212
from typing import Any, Callable, Dict, Generator, List, Optional, Set, Text, Union, cast
1313

1414
from six import string_types, u
@@ -592,7 +592,7 @@ def collect_output(self, schema, builder, outdir, fs_access, compute_checksum=Tr
592592
else "Directory"}
593593
for g in sorted(fs_access.glob(
594594
fs_access.join(outdir, gb)),
595-
cmp=locale.strcoll)])
595+
key=cmp_to_key(locale.strcoll))])
596596
except (OSError, IOError) as e:
597597
_logger.warning(Text(e))
598598
except:

0 commit comments

Comments
 (0)