Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <quinticent@phuket.(none)>2006-10-03 18:32:29 (GMT)
committer John (J5) Palmieri <quinticent@phuket.(none)>2006-10-03 18:32:29 (GMT)
commit7c342e75bf0cd3a1e1a208568cf14f7d013bf8c8 (patch)
treea66f8b6f0e2a97b516ee7016448ece5b9673fe64 /services
parentbe29c542bf79de9c9b25e6f8336f685e2bed8b2b (diff)
s/type(val) == type({})/isinstance(val, dict)
This needs to be changed everwhere in the code because isinstance will match derived types where == will not
Diffstat (limited to 'services')
-rw-r--r--services/presence/Service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/presence/Service.py b/services/presence/Service.py
index 1057071..9a216c3 100644
--- a/services/presence/Service.py
+++ b/services/presence/Service.py
@@ -315,7 +315,7 @@ class Service(gobject.GObject):
"""Set the service's properties from either an Avahi
TXT record (a list of lists of integers), or a
python dictionary."""
- if type(properties) != type({}):
+ if not isinstance (properties, dict):
raise ValueError("Properties must be a dictionary.")
# Make sure the properties are actually different