Package list lightdm-gtk-greeter-settings / c106576 debian / patches / 0002-Fix-Python-syntax-warning-in-helpers.py-script.patch
c106576

Tree @c106576 (Download .tar.gz)

0002-Fix-Python-syntax-warning-in-helpers.py-script.patch @c106576raw · history · blame

From: Sean Davis <smd.seandavis@gmail.com>
Date: Tue, 16 Jun 2020 06:22:40 -0400
Subject: Fix Python syntax warning in helpers.py script

From: upstream; https://github.com/Xubuntu/lightdm-gtk-greeter-settings/commit/c5ad9571dda90a3b4a5823ac7d4430d6a4cd5844
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/982373
Bug: https://github.com/Xubuntu/lightdm-gtk-greeter-settings/issues/19
---
 lightdm_gtk_greeter_settings/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lightdm_gtk_greeter_settings/helpers.py b/lightdm_gtk_greeter_settings/helpers.py
index a5b6fa7..53ba10d 100644
--- a/lightdm_gtk_greeter_settings/helpers.py
+++ b/lightdm_gtk_greeter_settings/helpers.py
@@ -278,7 +278,7 @@ class SimpleEnumMeta(type):
         obj._tuple_type = namedtuple(obj.__class__.__name__ + 'Tuple', obj._dict.keys())
         keys = list(obj._dict.keys())
         for i in range(len(keys)):
-            if obj._dict[keys[i]] is ():
+            if obj._dict[keys[i]] == ():
                 v = 0 if i == 0 else obj._dict[keys[i - 1]] + 1
                 setattr(obj, keys[i], v)
                 obj._dict[keys[i]] = v