better explanations
This commit is contained in:
parent
49e8b76c2d
commit
5f18ecf6fc
2 changed files with 7 additions and 7 deletions
|
|
@ -93,11 +93,6 @@ def read_parse( stream_in, stream_out, pattern, cmd, nowait = False, at_end = Fa
|
|||
Read the given file-like object as a non-blocking stream
|
||||
and call the function on each item (line),
|
||||
with the given extra arguments.
|
||||
|
||||
A call to "map_write(sys.stdin, function, *args)" will translate to the
|
||||
non-blocking equivalent of:
|
||||
for item in sys.stdin.readlines():
|
||||
write( function( *args ) )
|
||||
"""
|
||||
|
||||
if at_end:
|
||||
|
|
@ -138,7 +133,6 @@ if __name__ == "__main__":
|
|||
help="A regular expression")
|
||||
|
||||
parser.add_argument("commands", metavar="CMD", type=str, nargs="+",
|
||||
default="espeak %s",
|
||||
help="The command to run if REGEX match. \
|
||||
If CMD contains a string formating placefolder (like \"%%s\"), \
|
||||
it will be replaced by the matching text. \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue