elya5
edd9199be8
Fix UnboundlocalError in disco_browser.py example
...
If self.get is in self.info_types and self.items_types, only self['xep_0030'].get_info is executed and not self['xep_0030'].get_items. So the condition in line 129 is successful but items is not assigned.
2015-07-09 17:15:36 +02:00
Paul Molodowitch
52feabbe76
added setdefaultencoding method so reload(sys) not needed
...
reload(sys) could cause problem in user code - ie, sys.stdout, excepthook, and displayhook would be reset, etc
2012-10-24 13:06:36 -07:00
Lance Stout
295d23ccf3
Fix disco browser example to handle errors.
2012-08-07 16:44:52 -07:00
Lance Stout
24234bf718
Update other examples to use threaded mode for handlers that call disconnect()
2012-05-06 20:19:02 -07:00
Rodolfo Carvalho
7d1c5f4a2b
Fix a typo in several files.
...
This fixes several instances of "intial" for "initial".
2012-01-02 18:59:39 -02:00
Rodolfo Carvalho
cc63bef179
Remove unused imports in the examples.
2011-12-31 19:50:53 -02:00
Rodolfo Carvalho
8cafa8578f
Update examples to use the block'' argument instead of the deprecated threaded''.
2011-12-30 17:25:03 -02:00
Rodolfo Carvalho
2dc230a68b
Replace pydns with dnspython in the comments of the examples.
2011-12-30 00:08:05 -02:00
Lance Stout
015f662249
Update examples to work with Python3 (raw_input vs input)
2011-08-18 01:06:59 -07:00
Lance Stout
4916a12b6f
Tidy up the examples.
2011-03-23 22:59:21 -04:00
Lance Stout
874c51d74d
Added the disco browser as an example.
2010-12-16 21:58:53 -05:00