Skip to content

Commit

Permalink
Updated coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jul 30, 2023
1 parent 99fd646 commit b82190f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyEDAA/IPXACT/Catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ def FromFile(cls, filePath : Path):
items = []
for rootElements in root:
element = etree.QName(rootElements)
if (element.localname == "vendor"):
if element.localname == "vendor":
vendor = rootElements.text
elif (element.localname == "library"):
elif element.localname == "library":
library = rootElements.text
elif (element.localname == "name"):
elif element.localname == "name":
name = rootElements.text
elif (element.localname == "version"):
elif element.localname == "version":
version = rootElements.text
elif (element.localname == "description"):
elif element.localname == "description":
description = rootElements.text
elif (element.localname == "catalogs"):
elif element.localname == "catalogs":
for ipxactFileElement in rootElements:
items.append(IpxactFile.FromXml(ipxactFileElement))
else:
Expand Down

0 comments on commit b82190f

Please sign in to comment.