summaryrefslogtreecommitdiffstats
path: root/tester/rt/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'tester/rt/options.py')
-rw-r--r--tester/rt/options.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tester/rt/options.py b/tester/rt/options.py
index a916cbb..3b1adef 100644
--- a/tester/rt/options.py
+++ b/tester/rt/options.py
@@ -32,6 +32,8 @@
# Determine the defaults and load the specific file.
#
+from __future__ import print_function
+
import glob
import pprint
import re
@@ -45,8 +47,7 @@ from rtemstoolkit import log
from rtemstoolkit import macros
from rtemstoolkit import options
from rtemstoolkit import path
-
-import version
+from rtemstoolkit import version
#
# The path for the defaults.
@@ -114,13 +115,13 @@ def run(args):
log.notice(str(_opts))
log.notice('Defaults:')
log.notice(str(_opts.defaults))
- except error.general, gerr:
- print gerr
+ except error.general as gerr:
+ print(gerr)
sys.exit(1)
- except error.internal, ierr:
- print ierr
+ except error.internal as ierr:
+ print(ierr)
sys.exit(1)
- except error.exit, eerr:
+ except error.exit as eerr:
pass
except KeyboardInterrupt:
log.notice('abort: user terminated')