src/eric7/CycloneDXInterface/CycloneDXUtilities.py

branch
eric7
changeset 10170
6cf1ee737d8f
parent 9674
43dd357b3bff
child 10439
21c28b0f9e41
--- a/src/eric7/CycloneDXInterface/CycloneDXUtilities.py	Tue Aug 29 16:55:18 2023 +0200
+++ b/src/eric7/CycloneDXInterface/CycloneDXUtilities.py	Tue Aug 29 17:48:25 2023 +0200
@@ -11,7 +11,7 @@
 import json
 import os
 
-from xml.etree import ElementTree
+from xml.etree import ElementTree  # secok
 
 from cyclonedx.model import (
     ExternalReference,
@@ -207,7 +207,7 @@
     @return prettified SBOM string
     @rtype str
     """
-    tree = ElementTree.fromstring(inputStr)
+    tree = ElementTree.fromstring(inputStr)  # secok
     with contextlib.suppress(AttributeError):
         ElementTree.indent(tree)
         return '<?xml version="1.0" encoding="UTF-8"?>\n' + ElementTree.tostring(

eric ide

mercurial