From cc04ebb4f6ebbf80080b7990d710a55fd55a19a2 Mon Sep 17 00:00:00 2001 From: Brian May Date: Mon, 18 Jun 2018 17:11:31 +1000 Subject: Update python exception syntax for Python 3.6 compatibility --- bin/check-syntax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/check-syntax') diff --git a/bin/check-syntax b/bin/check-syntax index 115636f81f..adbe36ccd4 100755 --- a/bin/check-syntax +++ b/bin/check-syntax @@ -14,7 +14,7 @@ def setup_paths(): return path idx = string.rfind(path, '/') if idx == -1: - raise ImportError, "could not setup paths" + raise ImportError("could not setup paths") path = path[0:idx] root_path = setup_paths() @@ -38,7 +38,7 @@ def do_parse(f): % r.name) errors = True names[n] = r.name - except debian_support.ParseError, e: + except debian_support.ParseError as e: e.printOut(sys.stderr) errors = True if errors: -- cgit v1.2.3