summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorRobin Gloster <robin@loc-com.de>2014-08-18 00:18:10 +0200
committerRobin Gloster <robin@loc-com.de>2014-08-18 00:18:10 +0200
commit08c62a6bf1fe19ddf1f0c8fa441750f41f5d9436 (patch)
tree5dc018384ad03253608ff79c9fdbb577b84d2d2f /sleekxmpp
parent1063feb33bbe23c9196ebe278f306a7f2309ebad (diff)
downloadslixmpp-08c62a6bf1fe19ddf1f0c8fa441750f41f5d9436.tar.gz
slixmpp-08c62a6bf1fe19ddf1f0c8fa441750f41f5d9436.tar.bz2
slixmpp-08c62a6bf1fe19ddf1f0c8fa441750f41f5d9436.tar.xz
slixmpp-08c62a6bf1fe19ddf1f0c8fa441750f41f5d9436.zip
fix mutable default arguments :boom:
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/clientxmpp.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index f837c0f2..8db6ef17 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -52,7 +52,6 @@ class ClientXMPP(BaseXMPP):
:param jid: The JID of the XMPP user account.
:param password: The password for the XMPP user account.
- :param ssl: **Deprecated.**
:param plugin_config: A dictionary of plugin configurations.
:param plugin_whitelist: A list of approved plugins that
will be loaded when calling
@@ -60,8 +59,13 @@ class ClientXMPP(BaseXMPP):
:param escape_quotes: **Deprecated.**
"""
- def __init__(self, jid, password, plugin_config={}, plugin_whitelist=[],
- escape_quotes=True, sasl_mech=None, lang='en'):
+ def __init__(self, jid, password, plugin_config=None, plugin_whitelist=None, escape_quotes=True, sasl_mech=None,
+ lang='en'):
+ if not plugin_whitelist:
+ plugin_whitelist = []
+ if not plugin_config:
+ plugin_config = {}
+
BaseXMPP.__init__(self, jid, 'jabber:client')
self.escape_quotes = escape_quotes