From 27dabb45282911e375336f75934af9dd6cc5d963 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 30 Jul 2015 16:49:29 +0200 Subject: Modernize 'except' clauses The 'as' syntax works from Python 2 on, and Python 3 will drop the "comma" syntax. Reviewed-By: Tomas Babej --- ipatests/test_ipapython/test_ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipatests/test_ipapython/test_ssh.py') diff --git a/ipatests/test_ipapython/test_ssh.py b/ipatests/test_ipapython/test_ssh.py index db136a898..913ff8e6b 100644 --- a/ipatests/test_ipapython/test_ssh.py +++ b/ipatests/test_ipapython/test_ssh.py @@ -30,7 +30,7 @@ def make_public_key_checker(pk, out): try: parsed = ssh.SSHPublicKey(pk) assert parsed.openssh() == out - except Exception, e: + except Exception as e: assert type(e) is out check_public_key.description = "Test SSH public key parsing (%s)" % repr(pk) return check_public_key -- cgit