a is None is faster than a == None IIRC [it is for sure nicer :$]

This commit is contained in:
Nikos Kouremenos 2005-07-23 11:44:54 +00:00
parent f6892ea4f4
commit 4e31156bbd
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ class Connection:
signed = '' signed = ''
keyID = gajim.config.get_per('accounts', self.name, 'keyid') keyID = gajim.config.get_per('accounts', self.name, 'keyid')
if keyID and USE_GPG: 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 # We didn't set a passphrase
self.dispatch('ERROR', (_('OpenPGP Key was not given'), self.dispatch('ERROR', (_('OpenPGP Key was not given'),
_('You will be connected to %s without OpenPGP.') % self.name)) _('You will be connected to %s without OpenPGP.') % self.name))