Skip to content

Commit 0aeb4cb

Browse files
committed
upgrade hints and requirements
1 parent 8d3e668 commit 0aeb4cb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

cwlupgrader/main.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ def _draft3_to_v1_0(document):
5555
document["doc"] = document["description"]
5656
del document["description"]
5757

58-
for key, value in document.items():
59-
if isinstance(value, MutableMapping):
60-
document[key] = _draft3_to_v1_0(value)
58+
if isinstance(document, MutableMapping):
59+
for key, value in document.items():
60+
if isinstance(value, MutableMapping):
61+
document[key] = _draft3_to_v1_0(value)
62+
elif isinstance(value, list):
63+
for index, entry in enumerate(value):
64+
if isinstance(entry, MutableMapping):
65+
value[index] = _draft3_to_v1_0(entry)
6166

6267
return document
6368

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
README = os.path.join(SETUP_DIR, 'README.rst')
1111

1212
setup(name='cwl-upgrader',
13-
version='0.2.1',
13+
version='0.2.2',
1414
description='Common Workflow Language standalone document upgrader',
1515
long_description=open(README).read(),
1616
author='Common Workflow Language contributors',

0 commit comments

Comments
 (0)