From e1bb41bfde9601f83358ef7c8d7a746bfe5be754 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Thu, 24 Jan 2019 16:45:46 +0900 Subject: [PATCH] tests: Use python3 compatible raise statement This patch is made by using 2to3 command. find . -name *.py | xargs 2to3 -f raise -w -n Signed-off-by: Masashi Honma --- tests/hwsim/fst_module_aux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/fst_module_aux.py b/tests/hwsim/fst_module_aux.py index d929134e0..1468b8651 100644 --- a/tests/hwsim/fst_module_aux.py +++ b/tests/hwsim/fst_module_aux.py @@ -189,7 +189,7 @@ class FstDevice: def grequest(self, req): """Send request on the global control interface""" - raise Exception, "Virtual grequest() called!" + raise Exception("Virtual grequest() called!") def wait_gevent(self, events, timeout=None): """Wait for a list of events on the global interface"""