From 5d9c4972e075afb55dca0f65095b2c7dfffdf389 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 19 Feb 2021 13:34:09 -0500 Subject: use simpler super() magic Python 3 has a simpler super() style so switch to it to make the code a little simpler and to stop pylint warnings. Change-Id: I1b3ccf57ae968d56a9a0bcfc1258fbd8bfa3afee Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/297383 Reviewed-by: Michael Mortensen Tested-by: Mike Frysinger --- subcmds/gitc_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds') diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py index 7ecfdcac..89472edb 100644 --- a/subcmds/gitc_init.py +++ b/subcmds/gitc_init.py @@ -47,7 +47,7 @@ use for this GITC client. """ def _Options(self, p): - super(GitcInit, self)._Options(p, gitc_init=True) + super()._Options(p, gitc_init=True) g = p.add_option_group('GITC options') g.add_option('-f', '--manifest-file', dest='manifest_file', @@ -64,7 +64,7 @@ use for this GITC client. sys.exit(1) self.client_dir = os.path.join(gitc_utils.get_gitc_manifest_dir(), gitc_client) - super(GitcInit, self).Execute(opt, args) + super().Execute(opt, args) manifest_file = self.manifest.manifestFile if opt.manifest_file: -- cgit v1.2.3-54-g00ecf