diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-05-24 17:11:43 (GMT) |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-05-24 17:59:25 (GMT) |
commit | 7b20bacdf5771597ea061386ef488d12807435dd (patch) | |
tree | 2c5c3f30b45b67423deb45a6f45b7a53bfd4333f /services | |
parent | 0410ed28ba5abc291fb2febfca5bc3813cabb4de (diff) |
services/presence/presenceservice: check against None with 'is'
Diffstat (limited to 'services')
-rw-r--r-- | services/presence/presenceservice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py index 84d219a..dd76a66 100644 --- a/services/presence/presenceservice.py +++ b/services/presence/presenceservice.py @@ -236,11 +236,11 @@ class PresenceService(ExportedGObject): for act in activities_joined: _logger.debug("Handle %s joined activity %s", contact_handle, act) activity = self._activities.get(act) - if not activity: + if activity is None: # new activity, can fail activity = self._new_activity(act, tp) - if activity: + if activity is not None: activity.buddy_joined(buddy) buddy.add_activity(activity) |