Commit d8622c97 authored by Michael Büsch's avatar Michael Büsch

fupcompiler: Avoid None type for operators

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent acfd01d6
......@@ -124,7 +124,6 @@ class FupCompiler_Elem(FupCompiler_BaseObj):
subType = cls.str2subtype[subType]
else:
subType = None
content = content or None
except KeyError:
return None
return cls(grid, x, y, elemType, subType, content)
......@@ -136,7 +135,7 @@ class FupCompiler_Elem(FupCompiler_BaseObj):
self.y = y # Y coordinate
self.elemType = elemType # TYPE_...
self.subType = subType # SUBTYPE_... or None
self.content = content # content string or None
self.content = content or "" # content string
self.connections = set() # FupCompiler_Conn
def addConn(self, conn):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment