summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2023-10-23 21:20:07 +0200
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-25 09:06:23 +0000
commitb99272c601bc5f466c3cfc782bb852c2c967ad27 (patch)
treef13f0f0cc7942907ab3c0b901ff2ccdf8d0aec44
parentb0430b5bc519c93adce2e670d3b5083086a43383 (diff)
downloadgit-repo-b99272c601bc5f466c3cfc782bb852c2c967ad27.tar.gz
sync: PersistentTransport call parent initv2.39
Found via pylint: W0231: __init__ method from base class 'Transport' is not called (super-init-not-called) Just fixed for code correctness and to avoid potential future bugs. Change-Id: Ie1e723c2afe65d026d70ac01a16ee7a40c149834 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390676 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com> Commit-Queue: Daniel Kutik <daniel.kutik@lavawerk.com>
-rw-r--r--subcmds/sync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 9e43df4a..a0a0be9a 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -2043,6 +2043,7 @@ class LocalSyncState:
2043# is passed during initialization. 2043# is passed during initialization.
2044class PersistentTransport(xmlrpc.client.Transport): 2044class PersistentTransport(xmlrpc.client.Transport):
2045 def __init__(self, orig_host): 2045 def __init__(self, orig_host):
2046 super().__init__()
2046 self.orig_host = orig_host 2047 self.orig_host = orig_host
2047 2048
2048 def request(self, host, handler, request_body, verbose=False): 2049 def request(self, host, handler, request_body, verbose=False):