Skip to content

Commit

Permalink
Update xml_generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittich committed Jun 2, 2024
1 parent 6439b43 commit fc3e85c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sm_cm_config/src/xml_generate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/ usr / bin / env python
#!/usr/bin/env python
"""Generate XML file from YAML input"""
import xml.etree.ElementTree as ET
from pprint import pprint
Expand All @@ -12,7 +12,7 @@
def make_node(parent: ET.Element, myid: str, thedict: dict, addr2: int, bit: int,
parent_id: str) -> ET.Element:
"""create the node to be inserted into the xml tree"""
#pylint : disable = too - many - branches
#pylint: disable=too-many-branches
#I disable this check because as far as I can tell it's wrong
thenode = ET.SubElement(parent, 'node')
myid = myid.replace(' ', '_')
Expand Down

0 comments on commit fc3e85c

Please sign in to comment.