Skip to content

Commit f99ce39

Browse files
[PATCH] Fix for more PYL-W0212 false-positives (- WIP #127 -)
Changes in file multicast/hear.py: - Fix for PYL-W0212 Changes in file multicast/recv.py: - Fix for PYL-W0212 Changes in file multicast/send.py: - Fix for PYL-W0212
1 parent 7f4e842 commit f99ce39

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

multicast/hear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
from . import multicast as multicast # pylint: disable=cyclic-import - skipcq: PYL-C0414
172172
else: # pragma: no branch
173173
multicast = _sys.modules["""multicast"""]
174-
_BLANK = multicast._BLANK
174+
_BLANK = multicast._BLANK # skipcq: PYL-W0212 - module ok
175175
from . import recv as recv # pylint: disable=useless-import-alias - skipcq: PYL-C0414
176176
from . import send as send # pylint: disable=useless-import-alias - skipcq: PYL-C0414
177177
except Exception as importErr:
@@ -341,7 +341,7 @@ def handle(self):
341341
me=myID, you=self.client_address, what=str(data)
342342
)
343343
)
344-
send.McastSAY()._sayStep(
344+
send.McastSAY()._sayStep( # skipcq: PYL-W0212 - module ok
345345
self.client_address[0], self.client_address[1],
346346
str("HEAR [ {what} SAID {you} ] from {me}").format(
347347
me=myID, you=self.client_address, what=data.upper()

multicast/recv.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
from . import multicast as multicast # pylint: disable=cyclic-import - skipcq: PYL-C0414
181181
else: # pragma: no branch
182182
multicast = sys.modules["""multicast"""]
183-
_BLANK = multicast._BLANK
183+
_BLANK = multicast._BLANK # skipcq: PYL-W0212 - module ok
184184
except Exception as importErr:
185185
del importErr # skipcq - cleanup any error leaks early
186186
import multicast as multicast # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414
@@ -322,11 +322,11 @@ def recvstep(msgbuffer, chunk, sock):
322322
msgbuffer = tryrecv(msgbuffer, chunk, sock)
323323
except KeyboardInterrupt: # pragma: no branch
324324
if (sys.stdout.isatty()): # pragma: no cover
325-
print(multicast._BLANK)
325+
print(multicast._BLANK) # skipcq: PYL-W0212 - module ok
326326
print(str("""User Interrupted"""))
327327
except OSError: # pragma: no branch
328328
if (sys.stdout.isatty()): # pragma: no cover
329-
print(multicast._BLANK)
329+
print(multicast._BLANK) # skipcq: PYL-W0212 - module ok
330330
finally:
331331
sock = multicast.endSocket(sock)
332332
if not (chunk is None): # pragma: no branch
@@ -515,7 +515,7 @@ def _hearstep(groups, port, iface=None, bind_group=None):
515515
516516
"""
517517
sock = joinstep(groups, port, iface, bind_group, None)
518-
msgbuffer = str(multicast._BLANK)
518+
msgbuffer = str(multicast._BLANK) # skipcq: PYL-W0212 - module ok
519519
chunk = None
520520
msgbuffer = recvstep(msgbuffer, chunk, sock)
521521
# about 969 bytes in base64 encoded as chars

multicast/send.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
from . import multicast as multicast # pylint: disable=cyclic-import - skipcq: PYL-C0414
145145
else: # pragma: no branch
146146
multicast = sys.modules["""multicast"""]
147-
_BLANK = multicast._BLANK
147+
_BLANK = multicast._BLANK # skipcq: PYL-W0212 - module ok
148148
except Exception as importErr:
149149
del importErr # skipcq - cleanup any error leaks early
150150
# skipcq

0 commit comments

Comments
 (0)