From 3b6c79a296bb8d2a5d98c80e20742c90d380fe50 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sun, 1 Oct 2017 00:26:53 +0300 Subject: [PATCH] py3k: Use print() --- certidude/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/certidude/cli.py b/certidude/cli.py index 04b8d95..379b66b 100755 --- a/certidude/cli.py +++ b/certidude/cli.py @@ -1128,9 +1128,9 @@ def certidude_users(): from certidude.user import User admins = set(User.objects.filter_admins()) for user in User.objects.all(): - print "%s;%s;%s;%s;%s" % ( + print ("%s;%s;%s;%s;%s" % ( "admin" if user in admins else "user", - user.name, user.given_name, user.surname, user.mail) + user.name, user.given_name, user.surname, user.mail)) @click.command("list", help="List certificates") @@ -1200,7 +1200,7 @@ def certidude_list(verbose, show_key_type, show_extensions, show_path, show_sign click.echo("openssl x509 -in %s -text -noout" % path) dump_common(common_name, path, cert) for ext in cert["tbs_certificate"]["extensions"]: - print " - %s: %s" % (ext["extn_id"].native, repr(ext["extn_value"].native)) + print (" - %s: %s" % (ext["extn_id"].native, repr(ext["extn_value"].native))) if show_revoked: for common_name, path, buf, cert, server in authority.list_revoked(): @@ -1217,7 +1217,7 @@ def certidude_list(verbose, show_key_type, show_extensions, show_path, show_sign click.echo("openssl x509 -in %s -text -noout" % path) dump_common(common_name, path, cert) for ext in cert["tbs_certificate"]["extensions"]: - print " - %s: %s" % (ext["extn_id"].native, repr(ext["extn_value"].native)) + print (" - %s: %s" % (ext["extn_id"].native, repr(ext["extn_value"].native))) @click.command("sign", help="Sign certificate")