diff --git a/eeschema/plugins/python_scripts/kicad_netlist_reader.py b/eeschema/plugins/python_scripts/kicad_netlist_reader.py index 424404d6ce..5011b091fe 100644 --- a/eeschema/plugins/python_scripts/kicad_netlist_reader.py +++ b/eeschema/plugins/python_scripts/kicad_netlist_reader.py @@ -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: diff --git a/pcbnew/python/plugins/kicad_qrcode.py b/pcbnew/python/plugins/kicad_qrcode.py index 1eecc61f4a..847321edf8 100644 --- a/pcbnew/python/plugins/kicad_qrcode.py +++ b/pcbnew/python/plugins/kicad_qrcode.py @@ -131,7 +131,7 @@ class QRCode: rows.reverse() for row in rows: for c in range(2): - if self.modules[row][col - c] == None: + if self.modules[row][col - c] is None: dark = False if byteIndex < len(data):