|
64 | 64 | """hear.McastHEAR""", |
65 | 65 | ] |
66 | 66 |
|
67 | | -__package__ = """multicast""" # skipcq: PYL-W0622 |
| 67 | +__package__ = "multicast" # skipcq: PYL-W0622 |
68 | 68 | """The package of this program. |
69 | 69 |
|
70 | 70 | Minimal Acceptance Testing: |
|
80 | 80 |
|
81 | 81 | """ |
82 | 82 |
|
83 | | -__module__ = """multicast""" |
| 83 | +__module__ = "multicast" |
84 | 84 | """The module of this program. |
85 | 85 |
|
86 | 86 | Minimal Acceptance Testing: |
|
96 | 96 |
|
97 | 97 | """ |
98 | 98 |
|
99 | | -__name__ = """multicast""" # skipcq: PYL-W0622 |
| 99 | +__name__ = "multicast" # skipcq: PYL-W0622 |
100 | 100 | """The name of this program. |
101 | 101 |
|
102 | 102 | Minimal Acceptance Testing: |
|
114 | 114 |
|
115 | 115 | global __version__ # skipcq: PYL-W0604 |
116 | 116 |
|
117 | | -__version__ = """2.0.4""" |
| 117 | +__version__ = "2.0.4" |
118 | 118 | """The version of this program. |
119 | 119 |
|
120 | 120 | Minimal Acceptance Testing: |
|
265 | 265 |
|
266 | 266 | global _MCAST_DEFAULT_GROUP # skipcq: PYL-W0604 |
267 | 267 |
|
268 | | -_MCAST_DEFAULT_GROUP = """224.0.0.1""" |
| 268 | +_MCAST_DEFAULT_GROUP = "224.0.0.1" |
269 | 269 | """Arbitrary group to use by default, though any mcst grp would work. |
270 | 270 |
|
271 | 271 | The Value of "224.0.0.1" is chosen as a default multicast group as per RFC-5771 |
|
378 | 378 | from . import exceptions # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
379 | 379 | else: # pragma: no branch |
380 | 380 | global exceptions # skipcq: PYL-W0604 |
381 | | - exceptions = sys.modules["""multicast.exceptions"""] |
| 381 | + exceptions = sys.modules["multicast.exceptions"] |
382 | 382 |
|
383 | 383 | EXIT_CODES = exceptions.EXIT_CODES |
384 | 384 | """See multicast.exceptions.EXIT_CODES.""" |
|
395 | 395 | exit_on_exception = exceptions.exit_on_exception |
396 | 396 | """See multicast.exceptions.exit_on_exception function.""" |
397 | 397 |
|
398 | | -if 'multicast.env' not in sys.modules: |
| 398 | +if "multicast.env" not in sys.modules: |
399 | 399 | # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
400 | 400 | from . import env # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
401 | 401 | else: # pragma: no branch |
402 | 402 | global env # skipcq: PYL-W0604 |
403 | | - env = sys.modules["""multicast.env"""] |
| 403 | + env = sys.modules["multicast.env"] |
404 | 404 |
|
405 | 405 | _config = env.load_config() |
406 | 406 |
|
@@ -439,13 +439,13 @@ class mtool(abc.ABC): |
439 | 439 |
|
440 | 440 | """ |
441 | 441 |
|
442 | | - __module__ = """multicast""" |
| 442 | + __module__ = "multicast" |
443 | 443 |
|
444 | 444 | __proc__ = None |
445 | 445 |
|
446 | | - __prologue__ = """Add a prologue here.""" |
| 446 | + __prologue__ = "Add a prologue here." |
447 | 447 |
|
448 | | - __epilogue__ = """Add an epilogue here.""" |
| 448 | + __epilogue__ = "Add an epilogue here." |
449 | 449 |
|
450 | 450 | @classmethod |
451 | 451 | def buildArgs(cls, calling_parser_group): |
@@ -498,21 +498,21 @@ def buildArgs(cls, calling_parser_group): |
498 | 498 | add_help=False |
499 | 499 | ) |
500 | 500 | group = calling_parser_group.add_mutually_exclusive_group(required=False) |
501 | | - group.add_argument('-h', '--help', action='help') |
| 501 | + group.add_argument("-h", "--help", action="help") |
502 | 502 | group.add_argument( |
503 | 503 | "-v", |
504 | 504 | "--version", |
505 | 505 | action="version", |
506 | 506 | version=str("%(prog)s {version}").format(version=str(__version__)) |
507 | 507 | ) |
508 | 508 | calling_parser_group.add_argument( |
509 | | - """--use-std""", dest='is_std', default=False, action='store_true' |
| 509 | + "--use-std", dest="is_std", default=False, action="store_true" |
510 | 510 | ) |
511 | 511 | calling_parser_group.add_argument( |
512 | | - """--daemon""", dest='is_daemon', default=False, action='store_true' |
| 512 | + "--daemon", dest="is_daemon", default=False, action="store_true" |
513 | 513 | ) |
514 | 514 | subparsers = calling_parser_group.add_subparsers( |
515 | | - title="Tools", dest="cmd_tool", help=str("""Sub-Commands."""), metavar="CMD" |
| 515 | + title="Tools", dest="cmd_tool", help=str("Sub-Commands."), metavar="CMD" |
516 | 516 | ) |
517 | 517 | if mtool.__class__.__subclasscheck__(mtool, cls): # pragma: no branch |
518 | 518 | cls.setupArgs(subparsers) |
@@ -662,44 +662,44 @@ def doStep(self, *args, **kwargs): # pragma: no cover |
662 | 662 | raise NotImplementedError("Subclasses must implement this method.") |
663 | 663 |
|
664 | 664 |
|
665 | | -if 'multicast.skt' not in sys.modules: |
| 665 | +if "multicast.skt" not in sys.modules: |
666 | 666 | from . import skt as skt # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
667 | 667 | else: # pragma: no branch |
668 | 668 | global skt # skipcq: PYL-W0604 |
669 | | - skt = sys.modules["""multicast.skt"""] |
| 669 | + skt = sys.modules["multicast.skt"] |
670 | 670 |
|
671 | 671 | genSocket = skt.genSocket |
672 | 672 | """See multicast.skt.genSocket.""" |
673 | 673 |
|
674 | 674 | endSocket = skt.endSocket |
675 | 675 | """See multicast.skt.endSocket.""" |
676 | 676 |
|
677 | | -if 'multicast.recv' not in sys.modules: |
| 677 | +if "multicast.recv" not in sys.modules: |
678 | 678 | from . import recv as recv # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
679 | 679 | else: # pragma: no branch |
680 | 680 | global recv # skipcq: PYL-W0604 |
681 | | - recv = sys.modules["""multicast.recv"""] |
| 681 | + recv = sys.modules["multicast.recv"] |
682 | 682 |
|
683 | | -if 'multicast.send' not in sys.modules: |
| 683 | +if "multicast.send" not in sys.modules: |
684 | 684 | from . import send as send # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
685 | 685 | else: # pragma: no branch |
686 | 686 | global send # skipcq: PYL-W0604 |
687 | | - send = sys.modules["""multicast.send"""] |
| 687 | + send = sys.modules["multicast.send"] |
688 | 688 |
|
689 | | -if 'multicast.hear' not in sys.modules: |
| 689 | +if "multicast.hear" not in sys.modules: |
690 | 690 | from . import hear as hear # pylint: disable=cyclic-import - skipcq: PYL-R0401, PYL-C0414 |
691 | 691 | else: # pragma: no branch |
692 | 692 | global hear # skipcq: PYL-W0604 |
693 | | - hear = sys.modules["""multicast.hear"""] |
| 693 | + hear = sys.modules["multicast.hear"] |
694 | 694 |
|
695 | 695 | try: |
696 | | - if """multicast.__main__""" in sys.modules: # pragma: no cover |
| 696 | + if "multicast.__main__" in sys.modules: # pragma: no cover |
697 | 697 | global __main__ # skipcq: PYL-W0604 |
698 | | - __main__ = sys.modules["""multicast.__main__"""] |
| 698 | + __main__ = sys.modules["multicast.__main__"] |
699 | 699 | except Exception: |
700 | 700 | import multicast.__main__ as __main__ # pylint: disable=cyclic-import - skipcq: PYL-R0401 |
701 | 701 |
|
702 | | -if __name__ in u'__main__': |
| 702 | +if __name__ in u"__main__": |
703 | 703 | __EXIT_CODE = 2 |
704 | 704 | if __main__.main is not None: |
705 | 705 | __EXIT_CODE = __main__.main(sys.argv[1:]) |
|
0 commit comments