Skip to content

Commit 7b858a0

Browse files
committed
cleanup
1 parent 9c78d86 commit 7b858a0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ipython2cwl/cwltoolextractor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import astor
1212
import nbconvert
1313
import yaml
14-
from astor.string_repr import pretty_string
1514
from nbformat.notebooknode import NotebookNode
1615

1716
from .iotypes import CWLFilePathInput, CWLBooleanInput, CWLIntInput, CWLStringInput, CWLFilePathOutput
@@ -177,10 +176,7 @@ def _wrap_script_to_method(cls, tree, variables) -> str:
177176
main_function = ast.parse(main_template_code)
178177
[node for node in main_function.body if isinstance(node, ast.FunctionDef) and node.name == 'main'][0] \
179178
.body = tree.body
180-
return astor.to_source(
181-
main_function,
182-
pretty_string=lambda s, embedded, current_line, uni: pretty_string(s, embedded, current_line, uni, max_line=500)
183-
)
179+
return astor.to_source(main_function)
184180

185181
@classmethod
186182
def __get_add_arguments__(cls, variables):

0 commit comments

Comments
 (0)