Skip to content

Commit

Permalink
MAINT: codesytel
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Dieter committed Jan 12, 2024
1 parent 31b7a0b commit 5123116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions basil/HL/JtagMaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def scan_ir(self, data, readback=True):
bit_number = self._test_input(data)
self.SIZE = bit_number

if type(data[0]) == BitLogic:
if isinstance(data[0], BitLogic):
data_byte = self._bitlogic2bytes(data)
else:
data_byte = self._raw_data2bytes(data)
Expand Down Expand Up @@ -135,7 +135,7 @@ def scan_dr(self, data, readback=True, word_size=None):
self.WORD_COUNT = bit_number // word_size
self.SIZE = word_size

if type(data[0]) == BitLogic:
if isinstance(data[0], BitLogic):
data_byte = self._bitlogic2bytes(data)
else:
data_byte = self._raw_data2bytes(data)
Expand Down
2 changes: 1 addition & 1 deletion basil/TL/Socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def close(self):
self._sock.close()

def write(self, data):
if type(data) == bytes:
if isinstance(data, bytes):

Check warning on line 40 in basil/TL/Socket.py

View check run for this annotation

Codecov / codecov/patch

basil/TL/Socket.py#L40

Added line #L40 was not covered by tests
cmd = data
else:
cmd = data.encode(self.encoding)
Expand Down

0 comments on commit 5123116

Please sign in to comment.