Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-12 15:07:30 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-06-12 15:07:30 (GMT)
commit6604076d22edc6fe8ebbaf1338047930919b087a (patch)
treeadb42fe7001f7f1b7ad9f989b4e68ebae7b4e1c3
parent044cecffe4d7690402af7870a7288efa2a5db3c3 (diff)
buddy: Minor code simplification
-rw-r--r--src/buddy.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/buddy.py b/src/buddy.py
index cd4cb8a..1629892 100644
--- a/src/buddy.py
+++ b/src/buddy.py
@@ -386,16 +386,8 @@ class Buddy(ExportedGObject):
props[_PROP_OWNER] = self.props.owner or ''
props[_PROP_KEY] = self.props.key or ''
props[_PROP_COLOR] = self.props.color or ''
-
- if self.props.ip4_address:
- props[_PROP_IP4_ADDRESS] = self.props.ip4_address
- else:
- props[_PROP_IP4_ADDRESS] = ""
-
- if self.props.current_activity:
- props[_PROP_CURACT] = self.props.current_activity
- else:
- props[_PROP_CURACT] = ""
+ props[_PROP_IP4_ADDRESS] = self.props.ip4_address or ''
+ props[_PROP_CURACT] = self.props.current_activity or ''
return props
@dbus.service.method(_BUDDY_INTERFACE,