Chmod +x examples, and add shebang lines

This commit is contained in:
Lance Stout 2013-09-20 11:50:51 -07:00
parent b8b2f37e7b
commit cd2d25cf87
15 changed files with 77 additions and 58 deletions

1
examples/IoT_TestDevice.py Normal file → Executable file
View file

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library

0
examples/download_avatars.py Normal file → Executable file
View file

View file

@ -151,7 +151,7 @@ if __name__ == '__main__':
#
# if xmpp.connect(('talk.google.com', 5222)):
# ...
xmpp.process(block=True)
xmpp.process(block=False)
print("Done")
else:
print("Unable to connect.")

3
examples/migrate_roster.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import getpass

3
examples/pubsub_client.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import getpass

3
examples/pubsub_events.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import getpass

0
examples/register_account.py Normal file → Executable file
View file

0
examples/roster_browser.py Normal file → Executable file
View file

3
examples/rpc_async.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Dann Martens

3
examples/rpc_client_side.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Dann Martens

3
examples/rpc_server_side.py Normal file → Executable file
View file

@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Dann Martens

0
examples/set_avatar.py Normal file → Executable file
View file

0
examples/thirdparty_auth.py Normal file → Executable file
View file

0
examples/user_location.py Normal file → Executable file
View file

0
examples/user_tune.py Normal file → Executable file
View file