Author: danielsh
Date: Sat Apr 13 18:21:59 2013
New Revision: 1467671
URL: http://svn.apache.org/r1467671
Log:
* tools/examples/walk-config-auth.py
(show_creds): Trivial simplification. No functional change.
Modified:
subversion/trunk/tools/examples/walk-config-auth.py
Modified: subversion/trunk/tools/examples/walk-config-auth.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/tools/examples/walk-config-auth.py?rev=1467671&r1=1467670&r2=1467671&view=diff
==============================================================================
--- subversion/trunk/tools/examples/walk-config-auth.py (original)
+++ subversion/trunk/tools/examples/walk-config-auth.py Sat Apr 13 18:21:59 2013
@@ -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))