Fix python 'testing for equality' syntax

'Testing whether an object is 'None' using the == operator is inefficient and potentially incorrect.'  

Per https://lgtm.com/projects/g/KiCad/kicad-source-mirror/?mode=tree&ruleFocus=7900090
This commit is contained in:
luz paz
2021-07-19 15:42:30 +00:00
committed by Seth Hillbrand
parent 8ce005026c
commit 8bacc9fccb
2 changed files with 2 additions and 2 deletions
@@ -459,7 +459,7 @@ class netlist():
def addElement(self, name):
"""Add a new kicad generic element to the list"""
if self._curr_element == None:
if self._curr_element is None:
self.tree = xmlElement(name)
self._curr_element = self.tree
else: