fix: None comparison

This commit is contained in:
Elias Probst
2023-11-16 07:42:45 +01:00
committed by gitolicious
parent 10dc5846b7
commit a5c7a3c171

View File

@@ -62,9 +62,9 @@ class AveryLabel:
self.canvas.setLineCap(1)
def topLeft(self, x=None, y=None):
if x == None:
if x is None:
x = self.position
if y == None:
if y is None:
if self.topDown:
x,y = divmod(x, self.down)
else: