diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-15 15:18:33 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-15 15:18:33 (GMT) |
commit | f0af49616ca0b51336407b3bfc9ceff677178b7b (patch) | |
tree | 7f7124893f384de9b38a58365bc976f86a966191 /sugar/presence/Service.py | |
parent | ecf81ba35fbfa91c6b45cf0ef892c1c13d0e2eaf (diff) |
Fixed a bunch of issues reported by pylint
Diffstat (limited to 'sugar/presence/Service.py')
-rw-r--r-- | sugar/presence/Service.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sugar/presence/Service.py b/sugar/presence/Service.py index 4ad23aa..f79f17a 100644 --- a/sugar/presence/Service.py +++ b/sugar/presence/Service.py @@ -69,8 +69,6 @@ def is_multicast_address(address): return False -_ACTIVITY_UID_TAG = "ActivityUID" - class Service(object): """Encapsulates information about a specific ZeroConf/mDNS service as advertised on the network.""" @@ -103,16 +101,7 @@ class Service(object): self.set_port(port) self._properties = {} self.set_properties(properties) - - # Ensure that an ActivityUID tag, if given, matches - # what we expect from the service type - if self._properties.has_key(_ACTIVITY_UID_TAG): - prop_uid = self._properties[_ACTIVITY_UID_TAG] - if (prop_uid and not uid) or (prop_uid != uid): - raise ValueError("ActivityUID property specified, but the service type's activity UID didn't match it.") self._activity_uid = uid - if uid and not self._properties.has_key(_ACTIVITY_UID_TAG): - self._properties[_ACTIVITY_UID_TAG] = uid def get_name(self): """Return the service's name, usually that of the @@ -152,10 +141,6 @@ class Service(object): """Return the service's service type.""" return self._stype - def get_network_type(self): - """Return the full service type, including activity UID.""" - return self._real_stype - def get_port(self): return self._port |