From: Masashi Honma Date: Thu, 24 Jan 2019 07:45:46 +0000 (+0900) Subject: tests: Use python3 compatible raise statement X-Git-Tag: hostap_2_8~502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bb41bfde9601f83358ef7c8d7a746bfe5be754;p=thirdparty%2Fhostap.git 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 --- 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"""