diff options
Diffstat (limited to 'tools/examples/walk-config-auth.py')
-rwxr-xr-x | tools/examples/walk-config-auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/examples/walk-config-auth.py b/tools/examples/walk-config-auth.py index b3298f3..5841b6c 100755 --- a/tools/examples/walk-config-auth.py +++ b/tools/examples/walk-config-auth.py @@ -37,8 +37,8 @@ def print_help(): def show_creds(hash): hash_keys = hash.keys() - maxkeylen = max(map(lambda x: len(x), hash_keys)) - maxvallen = max(map(lambda x: len(x), hash.values())) + maxkeylen = max(map(len, hash_keys)) + maxvallen = max(map(len, hash.values())) hash_keys.sort() sys.stdout.write("+") sys.stdout.write("-" * (maxkeylen + 2)) |