diff options
author | Robin Gloster <robin@loc-com.de> | 2014-08-18 00:52:24 +0200 |
---|---|---|
committer | Robin Gloster <robin@loc-com.de> | 2014-08-18 00:55:10 +0200 |
commit | 4144d60017e200d97bcfe0286daee06d4641a9e0 (patch) | |
tree | fb9c0349f91d289b05107e7dad07c78f5be2c691 /sleekxmpp/componentxmpp.py | |
parent | a5c03b763a6545a214f4f391f7c07582c22150b2 (diff) | |
download | slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.tar.gz slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.tar.bz2 slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.tar.xz slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.zip |
cleanup semicolons, whitespace and mutable default arguments
Diffstat (limited to 'sleekxmpp/componentxmpp.py')
-rw-r--r-- | sleekxmpp/componentxmpp.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py index bac455e2..4b229a6f 100644 --- a/sleekxmpp/componentxmpp.py +++ b/sleekxmpp/componentxmpp.py @@ -49,8 +49,13 @@ class ComponentXMPP(BaseXMPP): Defaults to ``False``. """ - def __init__(self, jid, secret, host=None, port=None, - plugin_config={}, plugin_whitelist=[], use_jc_ns=False): + def __init__(self, jid, secret, host=None, port=None, plugin_config=None, plugin_whitelist=None, use_jc_ns=False): + + if not plugin_whitelist: + plugin_whitelist = [] + if not plugin_config: + plugin_config = {} + if use_jc_ns: default_ns = 'jabber:client' else: |