Docstring to the top\!, and redundant spaces goodbye\!

matrix
Guillermo Rodriguez 2020-07-29 15:39:38 -03:00
parent a565d38251
commit 3e29fcf1ea
No known key found for this signature in database
GPG Key ID: 3F61096EC7DF75A8
1 changed files with 2 additions and 5 deletions

View File

@ -1,3 +1,5 @@
"""This is the "bootloader" for actors started using the native trio backend.
"""
import sys import sys
import trio import trio
import argparse import argparse
@ -8,9 +10,6 @@ from ._actor import Actor
from ._entry import _trio_main from ._entry import _trio_main
"""This is the "bootloader" for actors started using the native trio backend.
"""
def parse_uid(arg): def parse_uid(arg):
name, uuid = literal_eval(arg) # ensure 2 elements name, uuid = literal_eval(arg) # ensure 2 elements
return str(name), str(uuid) # ensures str encoding return str(name), str(uuid) # ensures str encoding
@ -23,11 +22,9 @@ def parse_ipaddr(arg):
if __name__ == "__main__": if __name__ == "__main__":
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("--uid", type=parse_uid) parser.add_argument("--uid", type=parse_uid)
parser.add_argument("--loglevel", type=str) parser.add_argument("--loglevel", type=str)
parser.add_argument("--parent_addr", type=parse_ipaddr) parser.add_argument("--parent_addr", type=parse_ipaddr)
args = parser.parse_args() args = parser.parse_args()
subactor = Actor( subactor = Actor(