From a5c7a3c171deff8eb370f78f8cb313e7d11dbae4 Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Thu, 16 Nov 2023 07:42:45 +0100 Subject: [PATCH] fix: `None` comparison --- AveryLabels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AveryLabels.py b/AveryLabels.py index 704e58e..db5a92e 100644 --- a/AveryLabels.py +++ b/AveryLabels.py @@ -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: