Skip to content

Commit

Permalink
fix(pain001): codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Sep 15, 2023
1 parent bbe9f56 commit f94ebdc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions pain001/xml/create_xml_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

# Import the ElementTree package
import xml.etree.ElementTree as ET
import xml.etree.ElementTree as et

from jinja2 import Environment, FileSystemLoader

Expand All @@ -39,7 +39,7 @@ def create_xml_v3(root, data):
"""

# Create CstmrCdtTrfInitn element
cstmr_cdt_trf_initn_element = ET.Element("CstmrCdtTrfInitn")
cstmr_cdt_trf_initn_element = et.Element("CstmrCdtTrfInitn")
root.append(cstmr_cdt_trf_initn_element)

# Create a Jinja2 environment
Expand Down Expand Up @@ -104,7 +104,7 @@ def create_xml_v3(root, data):
xml_content = template.render(**xml_data_pain001_001_03)

# Parse the rendered XML content and append its children to the root
rendered_xml_tree = ET.fromstring(xml_content)
rendered_xml_tree = et.fromstring(xml_content)
for child in rendered_xml_tree:
cstmr_cdt_trf_initn_element.append(child)

Expand Down
6 changes: 3 additions & 3 deletions pain001/xml/create_xml_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

# Import the ElementTree package
import xml.etree.ElementTree as ET
import xml.etree.ElementTree as et

from jinja2 import Environment, FileSystemLoader

Expand All @@ -42,7 +42,7 @@ def create_xml_v4(root, data):

# Create CstmrCdtTrfInitn element
# pylint: disable=E1101
cstmr_cdt_trf_initn_element = ET.Element("CstmrCdtTrfInitn")
cstmr_cdt_trf_initn_element = et.Element("CstmrCdtTrfInitn")
root.append(cstmr_cdt_trf_initn_element)

# Create a Jinja2 environment
Expand Down Expand Up @@ -121,7 +121,7 @@ def create_xml_v4(root, data):
xml_content = template.render(**xml_data_pain001_001_04)

# Parse the rendered XML content and append its children to the root
rendered_xml_tree = ET.fromstring(xml_content)
rendered_xml_tree = et.fromstring(xml_content)
for child in rendered_xml_tree:
cstmr_cdt_trf_initn_element.append(child)

Expand Down
6 changes: 3 additions & 3 deletions pain001/xml/create_xml_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

# Import the ElementTree package
import xml.etree.ElementTree as ET
import xml.etree.ElementTree as et

from jinja2 import Environment, FileSystemLoader

Expand All @@ -40,7 +40,7 @@ def create_xml_v5(root, data):

# Create CstmrCdtTrfInitn element
# pylint: disable=E1101
cstmr_cdt_trf_initn_element = ET.Element("CstmrCdtTrfInitn")
cstmr_cdt_trf_initn_element = et.Element("CstmrCdtTrfInitn")
root.append(cstmr_cdt_trf_initn_element)

# Create a Jinja2 environment
Expand Down Expand Up @@ -88,7 +88,7 @@ def create_xml_v5(root, data):
xml_content = template.render(**xml_data)

# Parse the rendered XML content and append its children to the root
rendered_xml_tree = ET.fromstring(xml_content)
rendered_xml_tree = et.fromstring(xml_content)
for child in rendered_xml_tree:
cstmr_cdt_trf_initn_element.append(child)

Expand Down
6 changes: 3 additions & 3 deletions pain001/xml/create_xml_v9.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

# Import the ElementTree package
import xml.etree.ElementTree as ET
import xml.etree.ElementTree as et

from jinja2 import Environment, FileSystemLoader

Expand All @@ -40,7 +40,7 @@ def create_xml_v9(root, data):

# Create CstmrCdtTrfInitn element
# pylint: disable=E1101
cstmr_cdt_trf_initn_element = ET.Element("CstmrCdtTrfInitn")
cstmr_cdt_trf_initn_element = et.Element("CstmrCdtTrfInitn")
root.append(cstmr_cdt_trf_initn_element)

# Create a Jinja2 environment
Expand Down Expand Up @@ -93,7 +93,7 @@ def create_xml_v9(root, data):
xml_content = template.render(**xml_data_pain001_001_09)

# Parse the rendered XML content and append its children to the root
rendered_xml_tree = ET.fromstring(xml_content)
rendered_xml_tree = et.fromstring(xml_content)
for child in rendered_xml_tree:
cstmr_cdt_trf_initn_element.append(child)

Expand Down
2 changes: 1 addition & 1 deletion pain001/xml/generate_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def generate_xml(
sys.exit(1)

# Create a Jinja2 environment
env = Environment(loader=FileSystemLoader("."))
env = Environment(loader=FileSystemLoader("."), autoescape=True)

# Load the Jinja2 template
template = env.get_template(xml_file_path)
Expand Down

0 comments on commit f94ebdc

Please sign in to comment.