|
27 | 27 | # skipcq |
28 | 28 | __all__ = [ |
29 | 29 | """__package__""", """__module__""", """__name__""", """__version__""", """__prologue__""", |
30 | | - """__doc__""", """skt""", """skt.__package__""", """skt.__module__""", """skt.__name__""", |
| 30 | + """__doc__""", """exceptions""", """exceptions.CommandExecutionError""", |
| 31 | + """exceptions.get_exit_code_from_exception""", """exceptions.exit_on_exception""", |
| 32 | + """get_exit_code_from_exception""", """exit_on_exception""", |
| 33 | + """skt""", """skt.__package__""", """skt.__module__""", """skt.__name__""", |
31 | 34 | """skt.__file__""", """skt.genSocket""", """skt.genSocket.__func__""", """genSocket""", |
32 | 35 | """skt.endSocket""", """skt.endSocket.__func__""", """endSocket""", |
| 36 | + """EXIT_CODES""", """EXCEPTION_EXIT_CODES""", |
33 | 37 | """_BLANK""", """_MCAST_DEFAULT_PORT""", """_MCAST_DEFAULT_GROUP""", |
34 | 38 | """_MCAST_DEFAULT_TTL""", """mtool""", """recv""", """send""", """hear""", |
35 | 39 | """recv.McastRECV""", """send.McastSAY""", """hear.McastHEAR""", |
|
352 | 356 | raise ModuleNotFoundError("FAIL: we could not import Abstract base class. ABORT.") from None |
353 | 357 |
|
354 | 358 |
|
| 359 | +if 'multicast.exceptions' not in sys.modules: |
| 360 | + # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
| 361 | + from . import exceptions # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
| 362 | +else: # pragma: no branch |
| 363 | + exceptions = sys.modules["""multicast.exceptions"""] |
| 364 | + |
| 365 | +EXIT_CODES = exceptions.EXIT_CODES |
| 366 | + |
| 367 | +EXCEPTION_EXIT_CODES = exceptions.EXCEPTION_EXIT_CODES |
| 368 | + |
| 369 | +CommandExecutionError = exceptions.CommandExecutionError |
| 370 | + |
| 371 | +get_exit_code_from_exception = exceptions.get_exit_code_from_exception |
| 372 | + |
| 373 | +exit_on_exception = exceptions.exit_on_exception |
| 374 | + |
| 375 | + |
355 | 376 | class mtool(abc.ABC): |
356 | 377 | """ |
357 | 378 | Class for Multicast tools. |
@@ -602,9 +623,11 @@ def doStep(self, *args): # pragma: no cover |
602 | 623 |
|
603 | 624 |
|
604 | 625 | genSocket = skt.genSocket |
| 626 | +"""See multicast.skt.genSocket.""" |
605 | 627 |
|
606 | 628 |
|
607 | 629 | endSocket = skt.endSocket |
| 630 | +"""See multicast.skt.endSocket.""" |
608 | 631 |
|
609 | 632 |
|
610 | 633 | if 'multicast.recv' not in sys.modules: |
|
0 commit comments