From 7e4264aeab358739843fb69f58b7da80d2ad0537 Mon Sep 17 00:00:00 2001 From: Srevin Saju Date: Fri, 27 Dec 2019 13:59:13 +0300 Subject: [PATCH] Fix `is` comparison against literals : Python3.8 Syntax Warning . Fixes #434 --- src/sugar3/profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sugar3/profile.py b/src/sugar3/profile.py index d5757c34..21eb2b8d 100644 --- a/src/sugar3/profile.py +++ b/src/sugar3/profile.py @@ -68,8 +68,8 @@ class Profile(object): nick = get_nick_name() color = get_color() - return nick is not '' and \ - color is not '' and \ + return nick != '' and \ + color != '' and \ self.pubkey is not None and \ self.privkey_hash is not None