Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Starting helps.

  • Loading branch information...
commit 5cb3120ce5c121b4b5e84ccaecb5f0ebfc54451a 1 parent 467fcd2
@nvie authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  README.rst
3  README.rst
@@ -23,11 +23,13 @@ that `subprocess.Popen`'s initializer takes. For example, the minimal
my_drainer = Drainer(['ls', '-la'], read_event_cb=ignore_event)
+ my_drainer.start()
But, extra arguments are allowed, too::
my_drainer = Drainer(['echo', '$JAVA_HOME'], shell=True, bufsize=64,
+ my_drainer.start()
The only two arguments to `Drainer` that are reserved are
`stdout` and `stderr`. `Drainer` requires them to be
@@ -61,6 +63,7 @@ the value for the `read_event_cb` parameter::
foo = MyClass()
my_drainer = Drainer(['ls'], read_event_cb=foo.my_method)
+ my_drainer.start()
The granularity currently is a single line. If you want to read predefined
chunks of data, please fork this repo and implement a `Drainer` subclass
Please sign in to comment.
Something went wrong with that request. Please try again.