Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-10-08 00:41:59 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-10-08 00:41:59 +0400
commit9d7c80d52265e7f77fb5b5ea9d987592c49faa30 (patch)
treee032281da07a0fc9ccc54ac6c24d151d29792f62 /src/profile_window.py
parent96dd7b8ba7dc10c300ed7c0c7d19998feb03dc36 (diff)
[thorstenp] replace has_key by key in dict. Fixes #4392
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index 9b204b824..710deac5b 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -262,7 +262,7 @@ class ProfileWindow:
entries = entry.split('_')
loc = vcard_
if len(entries) == 3: # We need to use lists
- if not loc.has_key(entries[0]):
+ if entries[0] not in loc:
loc[entries[0]] = []
found = False
for e in loc[entries[0]]:
@@ -275,7 +275,7 @@ class ProfileWindow:
loc[entries[0]].append({entries[1]: '', entries[2]: txt})
return vcard_
while len(entries) > 1:
- if not loc.has_key(entries[0]):
+ if entries[0] not in loc:
loc[entries[0]] = {}
loc = loc[entries[0]]
del entries[0]
@@ -323,7 +323,7 @@ class ProfileWindow:
return
vcard_ = self.make_vcard()
nick = ''
- if vcard_.has_key('NICKNAME'):
+ if 'NICKNAME' in vcard_:
nick = vcard_['NICKNAME']
from common import pep
pep.user_send_nickname(self.account, nick)