summaryrefslogtreecommitdiffstats
path: root/subcmds/gitc_init.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-02-19 13:34:09 -0500
committerMike Frysinger <vapier@google.com>2021-02-19 20:06:20 +0000
commit5d9c4972e075afb55dca0f65095b2c7dfffdf389 (patch)
tree512d667e1ede4eb0a54a9b8bdcdfdfc0583a7b40 /subcmds/gitc_init.py
parent057905fa1d074e6dd341822e5a6a1e49b6b97a21 (diff)
downloadgit-repo-5d9c4972e075afb55dca0f65095b2c7dfffdf389.tar.gz
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 <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/gitc_init.py')
-rw-r--r--subcmds/gitc_init.py4
1 files changed, 2 insertions, 2 deletions
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.
47""" 47"""
48 48
49 def _Options(self, p): 49 def _Options(self, p):
50 super(GitcInit, self)._Options(p, gitc_init=True) 50 super()._Options(p, gitc_init=True)
51 g = p.add_option_group('GITC options') 51 g = p.add_option_group('GITC options')
52 g.add_option('-f', '--manifest-file', 52 g.add_option('-f', '--manifest-file',
53 dest='manifest_file', 53 dest='manifest_file',
@@ -64,7 +64,7 @@ use for this GITC client.
64 sys.exit(1) 64 sys.exit(1)
65 self.client_dir = os.path.join(gitc_utils.get_gitc_manifest_dir(), 65 self.client_dir = os.path.join(gitc_utils.get_gitc_manifest_dir(),
66 gitc_client) 66 gitc_client)
67 super(GitcInit, self).Execute(opt, args) 67 super().Execute(opt, args)
68 68
69 manifest_file = self.manifest.manifestFile 69 manifest_file = self.manifest.manifestFile
70 if opt.manifest_file: 70 if opt.manifest_file: