bom-in-python script does not compile

This commit is contained in:
Gerd v. Egidy 2012-01-23 09:32:08 -06:00 committed by Dick Hollenbeck
parent 7fd0f0cab5
commit ebb85aa232
1 changed files with 2 additions and 2 deletions

View File

@ -298,11 +298,11 @@ class netlist():
self.libparts.append(part(self._curr_element))
# If this element is a net, add it to the nets list
if self._curr_element.name = "net"
if self._curr_element.name == "net":
self.nets.append(self._curr_element)
# If this element is a library, add it to the libraries list
if self._curr_element.name = "library"
if self._curr_element.name == "library":
self.libraries.append(self._curr_element)
return self._curr_element