Skip to content

Commit 7c0c735

Browse files
[PATCH] Apply suggestions from code review (- WIP PR #388 -)
1 parent e375539 commit 7c0c735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/MulticastUDPClient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def __init__(self, *args, **kwargs) -> None: # pragma: no cover
240240
241241
"""
242242
# skipcq: TCV-002
243-
if str("grp_addr") in kwargs: # pragma: no branch
243+
if "grp_addr" in kwargs: # pragma: no branch
244244
self._group_addr = kwargs.get("grp_addr", None) # skipcq: PTC-W0039 - ensure None
245-
if str("src_port") in kwargs: # pragma: no branch
245+
if "src_port" in kwargs: # pragma: no branch
246246
self._source_port = kwargs.get("src_port", 0)
247247
else: # pragma: no branch
248248
self._source_port = int(
@@ -429,7 +429,7 @@ def main() -> None: # pragma: no cover
429429
tsts_fxr = MCastClient() # pragma: no cover
430430
print(str((HOST, PORT))) # pragma: no cover
431431
tsts_fxr.say(HOST, PORT, sock, data) # pragma: no cover
432-
tsts_fxr.say(HOST, PORT, sock, str("STOP")) # pragma: no cover
432+
tsts_fxr.say(HOST, PORT, sock, "STOP") # pragma: no cover
433433

434434

435435
if __name__ == "__main__": # pragma: no branch

0 commit comments

Comments
 (0)