[Calypso] [PATCH 1/3] acl: Improve debugging by quoting the values
Jelmer Vernooij
jelmer at jelmer.uk
Sat Apr 9 04:24:26 PDT 2016
LGTM
Jelmer
On Sat, Apr 09, 2016 at 12:42:38AM +0200, Guido Günther wrote:
> This makes it simple to spot empty values
> ---
> calypso/acl/htpasswd.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/calypso/acl/htpasswd.py b/calypso/acl/htpasswd.py
> index 9932197..89e5ba5 100644
> --- a/calypso/acl/htpasswd.py
> +++ b/calypso/acl/htpasswd.py
> @@ -59,7 +59,7 @@ def _sha1(hash_value, password):
>
> def has_right(owner, user, password):
> """Check if ``user``/``password`` couple is valid."""
> - log.debug("owner %s user %s", owner, user)
> + log.debug("owner '%s' user '%s'", owner, user)
> for line in open(FILENAME).readlines():
> if line.strip():
> login, hash_value = line.strip().split(":", 1)
> --
> 2.8.0.rc3
>
> _______________________________________________
> Calypso mailing list
> Calypso at keithp.com
> http://keithp.com/mailman/listinfo/calypso
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://keithp.com/pipermail/calypso/attachments/20160409/7e03303f/attachment-0001.sig>
More information about the Calypso
mailing list