summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0009
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-04 22:34:34 -0700
committerLance Stout <lancestout@gmail.com>2011-08-04 22:36:23 -0700
commit93a4a3f8a0f64eed846895365fa3da059bbf5ea1 (patch)
tree31d8ce46d3349810d135270c65ee068d2003414d /sleekxmpp/plugins/xep_0009
parent940e3eba35deab4c0d965dbbac4a57a534bd3681 (diff)
downloadslixmpp-93a4a3f8a0f64eed846895365fa3da059bbf5ea1.tar.gz
slixmpp-93a4a3f8a0f64eed846895365fa3da059bbf5ea1.tar.bz2
slixmpp-93a4a3f8a0f64eed846895365fa3da059bbf5ea1.tar.xz
slixmpp-93a4a3f8a0f64eed846895365fa3da059bbf5ea1.zip
Fix Python3 issue with dict.has_key()
Diffstat (limited to 'sleekxmpp/plugins/xep_0009')
-rw-r--r--sleekxmpp/plugins/xep_0009/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0009/remote.py b/sleekxmpp/plugins/xep_0009/remote.py
index 8c534118..b5d10b85 100644
--- a/sleekxmpp/plugins/xep_0009/remote.py
+++ b/sleekxmpp/plugins/xep_0009/remote.py
@@ -463,7 +463,7 @@ class RemoteSession(object):
key = "%s.%s" % (endpoint, name)
log.debug("Registering call handler for %s (%s)." % (key, method))
with self._lock:
- if self._entries.has_key(key):
+ if key in self._entries:
raise KeyError("A handler for %s has already been regisered!" % endpoint)
self._entries[key] = JabberRPCEntry(endpoint, method)
return key