Skip to content

Commit 13fbb31

Browse files
[STYLE] Remind app.deepsource.io that module access is normal in python.
Changes in file multicast/recv.py: * suppress false-positive PYL-W0212 Changes in file multicast/send.py: * suppress false-positive PYL-W0212
1 parent 51ff443 commit 13fbb31

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

multicast/recv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def tryrecv(msgbuffer, chunk, sock):
386386
>>>
387387
388388
"""
389-
chunk = sock.recv(multicast._MCAST_DEFAULT_BUFFER_SIZE)
389+
chunk = sock.recv(multicast._MCAST_DEFAULT_BUFFER_SIZE) # skipcq: PYL-W0212 - module ok
390390
if not (chunk is None): # pragma: no branch
391391
msgbuffer += str(chunk, encoding='utf8') # pragma: no cover
392392
chunk = None # pragma: no cover

multicast/send.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,10 @@ def doStep(self, *args, **kwargs):
355355
while True:
356356
try:
357357
# Read configured amount of bytes at a time - matches read size by default
358-
chunk = sys.stdin.read(multicast._MCAST_DEFAULT_BUFFER_SIZE)
358+
# skipcq: PYL-W0212
359+
chunk = sys.stdin.read(
360+
multicast._MCAST_DEFAULT_BUFFER_SIZE # skipcq: PYL-W0212 - module ok
361+
)
359362
except IOError as e:
360363
print(f"Error reading from stdin: {e}", file=sys.stderr)
361364
break

0 commit comments

Comments
 (0)