From 5be64a8ad2ecbaa681c4d375b8d3b338f6855b5f Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 20 Oct 2016 16:31:48 +0300 Subject: [PATCH] Fix pylint reported dangerous-default-value. --- ssh-audit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ssh-audit.py b/ssh-audit.py index ec8d2df..1ed19c9 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -1353,8 +1353,9 @@ def get_ssh_version(version_desc): return (SSH.Product.OpenSSH, version_desc) -def get_alg_timeframe(versions, for_server=True, result={}): - # type: (List[str], bool, Dict[str, List[Optional[str]]]) -> Dict[str, List[Optional[str]]] +def get_alg_timeframe(versions, for_server=True, result=None): + # type: (List[str], bool, Optional[Dict[str, List[Optional[str]]]]) -> Dict[str, List[Optional[str]]] + result = result or {} vlen = len(versions) for i in range(3): if i > vlen - 1: