Update examples to work with Python3 (raw_input vs input)

This commit is contained in:
Lance Stout
2011-08-18 01:06:59 -07:00
parent 8d998d71a3
commit 015f662249
10 changed files with 49 additions and 10 deletions

View File

@@ -27,6 +27,8 @@ from sleekxmpp.exceptions import IqError, IqTimeout
if sys.version_info < (3, 0):
reload(sys)
sys.setdefaultencoding('utf8')
else:
raw_input = input
class RosterBrowser(sleekxmpp.ClientXMPP):