From 569599f5950fcbf9c2c9f0fdf5f4b469babe573a Mon Sep 17 00:00:00 2001 From: Vincent Danno Date: Wed, 9 Jun 2021 21:29:05 +0200 Subject: Use python 3 super() style See https://www.python.org/dev/peps/pep-3135/ Signed-off-by: Vincent Danno Change-Id: I4f74db4a019b70d0289f8969d57fa9ad629c586f --- xtesting/core/mts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtesting/core/mts.py') diff --git a/xtesting/core/mts.py b/xtesting/core/mts.py index b9f605b8..3bc7bde9 100644 --- a/xtesting/core/mts.py +++ b/xtesting/core/mts.py @@ -43,7 +43,7 @@ class MTSLauncher(feature.BashFeature): self.is_skipped = True def __init__(self, **kwargs): - super(MTSLauncher, self).__init__(**kwargs) + super().__init__(**kwargs) # Location of the HTML report generated by MTS self.mts_stats_dir = os.path.join(self.res_dir, 'mts_stats_report') # Location of the log files generated by MTS for each test. @@ -214,7 +214,7 @@ class MTSLauncher(feature.BashFeature): self.__logger.info("MTS logs output dir: %s ", self.mts_logs_dir) kwargs.pop("cmd", None) - return super(MTSLauncher, self).execute(cmd=cmd, **kwargs) + return super().execute(cmd=cmd, **kwargs) except KeyError: self.__logger.error("Missing mandatory arg for MTS. kwargs: %s", -- cgit 1.2.3-korg