diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-18 01:06:59 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-18 01:06:59 -0700 |
commit | 015f662249eec9a0504bea1d614ad1138d8e19ab (patch) | |
tree | fa3da93e6dabd8a27aead8f034bb02e636d849e5 /examples/config_component.py | |
parent | 8d998d71a3f21a8ee6e887b87daaed3285329522 (diff) | |
download | slixmpp-015f662249eec9a0504bea1d614ad1138d8e19ab.tar.gz slixmpp-015f662249eec9a0504bea1d614ad1138d8e19ab.tar.bz2 slixmpp-015f662249eec9a0504bea1d614ad1138d8e19ab.tar.xz slixmpp-015f662249eec9a0504bea1d614ad1138d8e19ab.zip |
Update examples to work with Python3 (raw_input vs input)
Diffstat (limited to 'examples/config_component.py')
-rwxr-xr-x | examples/config_component.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/config_component.py b/examples/config_component.py index cbb8e628..7a28739f 100755 --- a/examples/config_component.py +++ b/examples/config_component.py @@ -27,6 +27,8 @@ from sleekxmpp.xmlstream.stanzabase import ET, registerStanzaPlugin if sys.version_info < (3, 0): reload(sys) sys.setdefaultencoding('utf8') +else: + raw_input = input class Config(ElementBase): |