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")