From f9de7bc9514596cecd51419c83901d24518a9109 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 14 Jul 2024 08:45:11 +0200 Subject: [PATCH] Fix Python: use is None/is not None instead of == None/!= None Thank you Kevin for having spotted this! Change-Id: Ic63469d2d8dfd3f7848b6fc2250f90271055c027 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170449 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- bin/ui-rules-enforcer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py index c363439d25bd..9b8b76f439ae 100755 --- a/bin/ui-rules-enforcer.py +++ b/bin/ui-rules-enforcer.py @@ -287,7 +287,7 @@ def remove_entry_shadow_type(current): shadow_type = child if isentry: - if shadow_typeis not None: + if shadow_type is not None: current.remove(shadow_type) def remove_label_pad(current):