diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-09-01 17:24:52 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-09-01 17:24:52 +0000 |
commit | b9f7af885c10edcea74ddadbe0dce5368a00a679 (patch) | |
tree | aa60e778c84798cd31a99766f0c21ad496509aa9 /sleekxmpp/xmlstream | |
parent | 32ef496502bb338ee030b31ce7ba70e789995d9c (diff) | |
download | slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.tar.gz slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.tar.bz2 slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.tar.xz slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.zip |
* fixed some python3 transition bugs
* added status options to muc joining
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r-- | sleekxmpp/xmlstream/statemachine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/statemachine.py b/sleekxmpp/xmlstream/statemachine.py index 66aa358f..e9e270c8 100644 --- a/sleekxmpp/xmlstream/statemachine.py +++ b/sleekxmpp/xmlstream/statemachine.py @@ -25,7 +25,7 @@ class StateMachine(object): if gstate in self.__state or gstate in self.__group: raise IndexError("The key or group '%s' is already in the StateMachine." % gstate) for state in groups[gstate]: - if self.__state.has_key(state): + if state in self.__state: raise IndexError("The group %s contains a key %s which is not set in the StateMachine." % (gstate, state)) self.__group[gstate] = groups[gstate] |