File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- """
2- Compile IPython Jupyter Notebooks as CWL CommandLineTools
3- """
1+ """Compile IPython Jupyter Notebooks as CWL CommandLineTools"""
42__version__ = "0.0.4"
Original file line number Diff line number Diff line change @@ -197,8 +197,7 @@ class AnnotatedIPython2CWLToolConverter:
197197 with the described inputs & outputs.
198198 """
199199
200- _code : str
201- """The annotated python code to convert."""
200+ _code : str # The annotated python code to convert.
202201
203202 def __init__ (self , annotated_ipython_code : str ):
204203 """Creates an AnnotatedIPython2CWLToolConverter. If the annotated_ipython_code contains magic commands use the
@@ -207,7 +206,8 @@ def __init__(self, annotated_ipython_code: str):
207206 self ._code = annotated_ipython_code
208207 extractor = AnnotatedVariablesExtractor ()
209208 self ._tree = extractor .visit (ast .parse (self ._code ))
210- [self ._tree .body .extend (d ) for d in extractor .to_dump ]
209+ for d in extractor .to_dump :
210+ self ._tree .body .extend (d )
211211 self ._tree = ast .fix_missing_locations (self ._tree )
212212 self ._variables = []
213213 for variable in extractor .extracted_variables : # type: _VariableNameTypePair
You can’t perform that action at this time.
0 commit comments