Skip to content

Commit

Permalink
sync: PersistentTransport call parent init
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Daniel Kutik <[email protected]>
Commit-Queue: Daniel Kutik <[email protected]>
  • Loading branch information
danielkutik authored and LUCI committed Oct 25, 2023
1 parent b0430b5 commit b99272c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subcmds/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,7 @@ def IsPartiallySynced(self):
# is passed during initialization.
class PersistentTransport(xmlrpc.client.Transport):
def __init__(self, orig_host):
super().__init__()
self.orig_host = orig_host

def request(self, host, handler, request_body, verbose=False):
Expand Down

0 comments on commit b99272c

Please sign in to comment.