summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/IoT_TestDevice.py17
-rwxr-xr-xexamples/adhoc_provider.py12
-rwxr-xr-xexamples/adhoc_user.py12
-rwxr-xr-xexamples/admin_commands.py12
-rwxr-xr-xexamples/confirm_answer.py12
-rwxr-xr-xexamples/confirm_ask.py12
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_provider.py12
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_user.py12
-rwxr-xr-xexamples/disco_browser.py12
-rwxr-xr-xexamples/download_avatars.py12
-rwxr-xr-xexamples/echo_client.py12
-rwxr-xr-xexamples/echo_component.py12
-rwxr-xr-xexamples/gtalk_custom_domain.py12
-rw-r--r--examples/http_over_xmpp.py17
-rwxr-xr-xexamples/http_upload.py12
-rwxr-xr-xexamples/ibb_transfer/ibb_receiver.py12
-rwxr-xr-xexamples/ibb_transfer/ibb_sender.py12
-rwxr-xr-xexamples/mam.py12
-rwxr-xr-xexamples/markup.py12
-rwxr-xr-xexamples/mix.py12
-rwxr-xr-xexamples/muc.py12
-rwxr-xr-xexamples/ping.py12
-rwxr-xr-xexamples/pubsub_client.py1
-rwxr-xr-xexamples/pubsub_events.py1
-rwxr-xr-xexamples/register_account.py12
-rwxr-xr-xexamples/roster_browser.py12
-rwxr-xr-xexamples/rpc_async.py13
-rwxr-xr-xexamples/rpc_client_side.py13
-rwxr-xr-xexamples/rpc_server_side.py13
-rwxr-xr-xexamples/s5b_transfer/s5b_receiver.py12
-rwxr-xr-xexamples/s5b_transfer/s5b_sender.py12
-rwxr-xr-xexamples/send_client.py12
-rwxr-xr-xexamples/set_avatar.py12
-rwxr-xr-xexamples/thirdparty_auth.py12
34 files changed, 132 insertions, 267 deletions
diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py
index d8e8fd06..0d50c714 100755
--- a/examples/IoT_TestDevice.py
+++ b/examples/IoT_TestDevice.py
@@ -1,15 +1,11 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Implementation of xeps for Internet of Things
- http://wiki.xmpp.org/web/Tech_pages/IoT_systems
- Copyright (C) 2013 Sustainable Innovation, Joachim.lindborg@sust.se
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Implementation of xeps for Internet of Things
+# http://wiki.xmpp.org/web/Tech_pages/IoT_systems
+# Copyright (C) 2013 Sustainable Innovation, Joachim.lindborg@sust.se
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
@@ -179,4 +175,3 @@ if __name__ == '__main__':
else:
print("noopp didn't happen")
-
diff --git a/examples/adhoc_provider.py b/examples/adhoc_provider.py
index d2c3afd6..6c667777 100755
--- a/examples/adhoc_provider.py
+++ b/examples/adhoc_provider.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/adhoc_user.py b/examples/adhoc_user.py
index 931ef71c..0b9e8cef 100755
--- a/examples/adhoc_user.py
+++ b/examples/adhoc_user.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/admin_commands.py b/examples/admin_commands.py
index 64c48913..b5df309d 100755
--- a/examples/admin_commands.py
+++ b/examples/admin_commands.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/confirm_answer.py b/examples/confirm_answer.py
index f2c4c273..342647e9 100755
--- a/examples/confirm_answer.py
+++ b/examples/confirm_answer.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2015 Emmanuel Gil Peyrot
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2015 Emmanuel Gil Peyrot
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/confirm_ask.py b/examples/confirm_ask.py
index 27fdfde7..5b663054 100755
--- a/examples/confirm_ask.py
+++ b/examples/confirm_ask.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2015 Emmanuel Gil Peyrot
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2015 Emmanuel Gil Peyrot
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import sys
diff --git a/examples/custom_stanzas/custom_stanza_provider.py b/examples/custom_stanzas/custom_stanza_provider.py
index bca4a904..78497f32 100755
--- a/examples/custom_stanzas/custom_stanza_provider.py
+++ b/examples/custom_stanzas/custom_stanza_provider.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/custom_stanzas/custom_stanza_user.py b/examples/custom_stanzas/custom_stanza_user.py
index 4119aa97..121f31b8 100755
--- a/examples/custom_stanzas/custom_stanza_user.py
+++ b/examples/custom_stanzas/custom_stanza_user.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/disco_browser.py b/examples/disco_browser.py
index 02d51259..25f9b8f3 100755
--- a/examples/disco_browser.py
+++ b/examples/disco_browser.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/download_avatars.py b/examples/download_avatars.py
index 37733b01..3eb8f29d 100755
--- a/examples/download_avatars.py
+++ b/examples/download_avatars.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2012 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2012 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/echo_client.py b/examples/echo_client.py
index 2a3337a5..2f3e11fc 100755
--- a/examples/echo_client.py
+++ b/examples/echo_client.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/echo_component.py b/examples/echo_component.py
index 664fe311..7bf09ed4 100755
--- a/examples/echo_component.py
+++ b/examples/echo_component.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/gtalk_custom_domain.py b/examples/gtalk_custom_domain.py
index c8d80e96..95fe238a 100755
--- a/examples/gtalk_custom_domain.py
+++ b/examples/gtalk_custom_domain.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/http_over_xmpp.py b/examples/http_over_xmpp.py
index 013f301b..9af708ad 100644
--- a/examples/http_over_xmpp.py
+++ b/examples/http_over_xmpp.py
@@ -1,15 +1,11 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Implementation of HTTP over XMPP transport
- http://xmpp.org/extensions/xep-0332.html
- Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
- This file is part of slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Implementation of HTTP over XMPP transport
+# http://xmpp.org/extensions/xep-0332.html
+# Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
+# This file is part of slixmpp.
+# See the file LICENSE for copying permission.
from slixmpp import ClientXMPP
@@ -94,4 +90,3 @@ if __name__ == '__main__':
xmpp = HTTPOverXMPPClient(args.jid, args.password)
xmpp.connect()
xmpp.process()
-
diff --git a/examples/http_upload.py b/examples/http_upload.py
index 268a22dc..f74b5b10 100755
--- a/examples/http_upload.py
+++ b/examples/http_upload.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2018 Emmanuel Gil Peyrot
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2018 Emmanuel Gil Peyrot
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/ibb_transfer/ibb_receiver.py b/examples/ibb_transfer/ibb_receiver.py
index e934f295..1ab15634 100755
--- a/examples/ibb_transfer/ibb_receiver.py
+++ b/examples/ibb_transfer/ibb_receiver.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/ibb_transfer/ibb_sender.py b/examples/ibb_transfer/ibb_sender.py
index 8600ac80..df930c28 100755
--- a/examples/ibb_transfer/ibb_sender.py
+++ b/examples/ibb_transfer/ibb_sender.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/mam.py b/examples/mam.py
index cd6b738a..7d388e04 100755
--- a/examples/mam.py
+++ b/examples/mam.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2017 Mathieu Pasquet
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2017 Mathieu Pasquet
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/markup.py b/examples/markup.py
index 4c850ec8..7546c3aa 100755
--- a/examples/markup.py
+++ b/examples/markup.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/mix.py b/examples/mix.py
index 1c3a34ae..f9afdf85 100755
--- a/examples/mix.py
+++ b/examples/mix.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2021 Mathieu Pasquet
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2021 Mathieu Pasquet
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/muc.py b/examples/muc.py
index 62e8e898..5506c6e0 100755
--- a/examples/muc.py
+++ b/examples/muc.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/ping.py b/examples/ping.py
index 7870715c..c8330cd8 100755
--- a/examples/ping.py
+++ b/examples/ping.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py
index e285dfc8..93586a33 100755
--- a/examples/pubsub_client.py
+++ b/examples/pubsub_client.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
import logging
from getpass import getpass
diff --git a/examples/pubsub_events.py b/examples/pubsub_events.py
index 2b3a1e65..4950f49d 100755
--- a/examples/pubsub_events.py
+++ b/examples/pubsub_events.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
import logging
from getpass import getpass
diff --git a/examples/register_account.py b/examples/register_account.py
index 9ab0c664..55811840 100755
--- a/examples/register_account.py
+++ b/examples/register_account.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/roster_browser.py b/examples/roster_browser.py
index e9365d09..4f53ac61 100755
--- a/examples/roster_browser.py
+++ b/examples/roster_browser.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2011 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2011 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/rpc_async.py b/examples/rpc_async.py
index f773a8d1..ec857529 100755
--- a/examples/rpc_async.py
+++ b/examples/rpc_async.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2011 Dann Martens
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2011 Dann Martens
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
from slixmpp.plugins.xep_0009.remote import Endpoint, remote, Remote, \
ANY_ALL, Future
@@ -44,4 +40,3 @@ def main():
if __name__ == '__main__':
main()
-
diff --git a/examples/rpc_client_side.py b/examples/rpc_client_side.py
index 0a4ba015..bf76701d 100755
--- a/examples/rpc_client_side.py
+++ b/examples/rpc_client_side.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2011 Dann Martens
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2011 Dann Martens
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
from slixmpp.plugins.xep_0009.remote import Endpoint, remote, Remote, \
ANY_ALL
@@ -53,4 +49,3 @@ def main():
if __name__ == '__main__':
main()
-
diff --git a/examples/rpc_server_side.py b/examples/rpc_server_side.py
index b973e53b..efbb8d93 100755
--- a/examples/rpc_server_side.py
+++ b/examples/rpc_server_side.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2011 Dann Martens
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2011 Dann Martens
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
from slixmpp.plugins.xep_0009.remote import Endpoint, remote, Remote, \
ANY_ALL
@@ -52,4 +48,3 @@ def main():
if __name__ == '__main__':
main()
-
diff --git a/examples/s5b_transfer/s5b_receiver.py b/examples/s5b_transfer/s5b_receiver.py
index d97d4777..cdc7d6dc 100755
--- a/examples/s5b_transfer/s5b_receiver.py
+++ b/examples/s5b_transfer/s5b_receiver.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2015 Emmanuel Gil Peyrot
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2015 Emmanuel Gil Peyrot
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/s5b_transfer/s5b_sender.py b/examples/s5b_transfer/s5b_sender.py
index 7ef5c99c..a8be52fb 100755
--- a/examples/s5b_transfer/s5b_sender.py
+++ b/examples/s5b_transfer/s5b_sender.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2015 Emmanuel Gil Peyrot
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2015 Emmanuel Gil Peyrot
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/send_client.py b/examples/send_client.py
index 5d5fb810..fc644df7 100755
--- a/examples/send_client.py
+++ b/examples/send_client.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import logging
from getpass import getpass
diff --git a/examples/set_avatar.py b/examples/set_avatar.py
index 3188e9d8..2b3c1987 100755
--- a/examples/set_avatar.py
+++ b/examples/set_avatar.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2012 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2012 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import os
import imghdr
diff --git a/examples/thirdparty_auth.py b/examples/thirdparty_auth.py
index b2623972..2c2e741f 100755
--- a/examples/thirdparty_auth.py
+++ b/examples/thirdparty_auth.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
- Slixmpp: The Slick XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of Slixmpp.
-
- See the file LICENSE for copying permission.
-"""
+# Slixmpp: The Slick XMPP Library
+# Copyright (C) 2010 Nathanael C. Fritz
+# This file is part of Slixmpp.
+# See the file LICENSE for copying permission.
import sys
import logging