From 015f662249eec9a0504bea1d614ad1138d8e19ab Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 18 Aug 2011 01:06:59 -0700 Subject: Update examples to work with Python3 (raw_input vs input) --- examples/config_component.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/config_component.py') 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): -- cgit v1.2.3