From 61b63fe88d50112df441c36c0f8dc50ae7f9083c Mon Sep 17 00:00:00 2001 From: Ernest W Durbin III Date: Tue, 13 Feb 2018 19:37:28 -0500 Subject: [PATCH] style: use click.echo instead of print, f-strings instead of implicit concatenation --- decrypt_otpauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decrypt_otpauth.py b/decrypt_otpauth.py index a98df9c..ccc9b35 100644 --- a/decrypt_otpauth.py +++ b/decrypt_otpauth.py @@ -205,7 +205,7 @@ def decrypt_account(encrypted_otpauth_account): elif archive['Version'] == 1.2: account = decrypt_account_12(archive, password) else: - print('Encountered unknow file version', archive['Version']) + click.echo(f'Encountered unknow file version: {archive["Version"]}') return render_qr_to_terminal(account.otp_uri(), account.type, account.issuer, account.label) @@ -264,7 +264,7 @@ def decrypt_backup(encrypted_otpauth_backup): elif archive['Version'] == 1.1: accounts = decrypt_backup_11(archive, password) else: - print('Encountered unknow file version', archive['Version']) + click.echo(f'Encountered unknow file version: {archive["Version"]}') return for account in accounts: