projects
/
python-purple
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replaced all 'dict.has_key(item)' with 'item in dict' expressions.
[python-purple]
/
plugin.pyx
diff --git
a/plugin.pyx
b/plugin.pyx
index
c5b5f93
..
57c7e9d
100644
(file)
--- a/
plugin.pyx
+++ b/
plugin.pyx
@@
-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: