Skip to content

Commit

Permalink
dist/tests/if_lib: don't invoke super class __init__
Browse files Browse the repository at this point in the history
Python invokes super class __init__ automatically
unless it is overridden.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
  • Loading branch information
yegorich committed Aug 6, 2018
1 parent f215ee3 commit 87ecb78
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions dist/tests/if_lib/bpt_if.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ class BptIf(LLShell):
"""Getters and setters for the memory map."""
DEVICE_NUM = 0x42A5

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

def is_connected_to_board(self):
"""Checks if board is connected."""
return self.get_sys_device_num()["data"] == self.DEVICE_NUM
Expand Down
3 changes: 0 additions & 3 deletions dist/tests/if_lib/dut_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ class DutShell(BaseDevice):
RESULT_ERROR = 'Error'
RESULT_TIMEOUT = 'Timeout'

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

@staticmethod
def _try_parse_data(data):
if ('[' in data) and (']' in data):
Expand Down
3 changes: 0 additions & 3 deletions dist/tests/if_lib/ll_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ class LLShell(BaseDevice):
RESULT_ERROR = 'Error'
RESULT_TIMEOUT = 'Timeout'

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

@staticmethod
def _try_parse_data(data):
parsed_data = None
Expand Down

0 comments on commit 87ecb78

Please sign in to comment.