Replaced all 'dict.has_key(item)' with 'item in dict' expressions.
[python-purple] / plugin.pyx
index c5b5f93..57c7e9d 100644 (file)
@@ -169,7 +169,7 @@ cdef class Plugin:
 
             iter = iter.next
 
-            if not po.has_key(sett) or not po[sett]:
+            if sett not in po or po[sett] == None:
                 continue
 
             if type == prefs.PURPLE_PREF_STRING: