Commit 3e2bcf81 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Removing print

parent 1dfbe937
Loading
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ class OIDArc:
        other_arc = other.root()
        while len(other_arc.children) > 0:
            if len(other_arc.children) > 1:
                print(other_arc.children)
                raise ValueError(f"Can't merge with {other} as it has too many children ({len(other_arc.children)})")
            other_next_arc = other_arc.children[0]
            this_next_arc = this_arc.get_child_by_value(other_next_arc.value)
@@ -68,11 +67,8 @@ class OIDArc:

def parse_oid_string(s: str):
    oids = s.replace("\n","").replace("\r","").strip()
    print(oids)
    oids = [x.strip() for x in oids.split(" ") if x != ""]
    print(oids)
    arc_list = [OIDArc(oid) for oid in oids]
    print(arc_list)
    for i, arc in enumerate(arc_list):
        if i > 0:
            arc.parent = arc_list[i - 1]
@@ -104,7 +100,6 @@ for asn_file in asn_files:
        module_name = match[0].strip()
        link = f"[{module_name}]({url})"
        oid = parse_oid_string(match[1])
        print(oid)
        relative_oids = oid.as_relative(3)
        if oid_tree is None:
            oid_tree = oid.root()