From f64fac0b62db9cf9d88237912766a0f571d958c2 Mon Sep 17 00:00:00 2001 From: "Jason R. Jones" Date: Fri, 24 Jul 2020 21:10:24 -0400 Subject: [PATCH] Remove unused parameter --- src/wireviz/wireviz.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wireviz/wireviz.py b/src/wireviz/wireviz.py index 9f9697b..b9f1f05 100755 --- a/src/wireviz/wireviz.py +++ b/src/wireviz/wireviz.py @@ -17,12 +17,11 @@ from wireviz.Harness import Harness from wireviz.wv_helper import expand, open_file_read -def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, str, Tuple[str]) = None) -> Any: +def parse(yaml_input: str, return_types: (None, str, Tuple[str]) = None) -> Any: """ Parses yaml input string and does the high-level harness conversion :param yaml_input: a string containing the yaml input data - :param file_out: :param return_types: if None, then returns None; if the value is a string, then a corresponding data format will be returned; if the value is a tuple of strings, then for every valid format in the `return_types` tuple, another return type @@ -166,9 +165,6 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st for line in yaml_data["additional_bom_items"]: harness.add_bom_item(line) - if file_out is not None: - harness.output(filename=file_out, fmt=('png', 'svg'), view=False) - if return_types is not None: returns = [] if isinstance(return_types, str): # only one return type speficied