From 4e31156bbd314c3c2bc49c77f78cd4ec1f1986b4 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 23 Jul 2005 11:44:54 +0000 Subject: [PATCH] a is None is faster than a == None IIRC [it is for sure nicer :$] --- src/common/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 24ce613db..d904efac2 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -851,7 +851,7 @@ class Connection: signed = '' keyID = gajim.config.get_per('accounts', self.name, 'keyid') if keyID and USE_GPG: - if self.connected < 2 and self.gpg.passphrase == None: + if self.connected < 2 and self.gpg.passphrase is None: # We didn't set a passphrase self.dispatch('ERROR', (_('OpenPGP Key was not given'), _('You will be connected to %s without OpenPGP.') % self.name))