Skip to content

Commit

Permalink
prevent mutable in parameter default
Browse files Browse the repository at this point in the history
  • Loading branch information
dariko committed Mar 2, 2019
1 parent 709f74e commit 3aa610e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etcd3/baseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def __init__(self, host=None, port=None, endpoints=None, protocol='http', cert=(
verify=None, timeout=None, headers=None, user_agent=None, pool_size=30,
username=None, password=None, token=None,
server_version=DEFAULT_VERSION, cluster_version=DEFAULT_VERSION,
failover_whitelist=["range", "watch", "status"]):
failover_whitelist=None):
if failover_whitelist is None:
failover_whitelist = ["range", "watch", "status"]
if host is not None:
self.endpoints = ([EtcdEndpoint(host, port)])
else:
Expand Down

0 comments on commit 3aa610e

Please sign in to comment.