mirror of https://github.com/jtesta/ssh-audit.git
Fix pylint reported dangerous-default-value.
This commit is contained in:
parent
67087fb920
commit
5be64a8ad2
|
@ -1353,8 +1353,9 @@ def get_ssh_version(version_desc):
|
||||||
return (SSH.Product.OpenSSH, version_desc)
|
return (SSH.Product.OpenSSH, version_desc)
|
||||||
|
|
||||||
|
|
||||||
def get_alg_timeframe(versions, for_server=True, result={}):
|
def get_alg_timeframe(versions, for_server=True, result=None):
|
||||||
# type: (List[str], bool, Dict[str, List[Optional[str]]]) -> Dict[str, List[Optional[str]]]
|
# type: (List[str], bool, Optional[Dict[str, List[Optional[str]]]]) -> Dict[str, List[Optional[str]]]
|
||||||
|
result = result or {}
|
||||||
vlen = len(versions)
|
vlen = len(versions)
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
if i > vlen - 1:
|
if i > vlen - 1:
|
||||||
|
|
Loading…
Reference in New Issue