Skip to content

Commit

Permalink
fix names in README, long_description
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Mar 9, 2016
1 parent abba15b commit 7f95a69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Capture C-level stdout/stderr pipes in Python via `os.dup2`.
Capture stdout/stderr in pipes:

```python
from wurlitzer import capture
from wurlitzer import pipes

with capture() as (out, err):
with pipes() as (out, err):
call_some_c_function()

stdout = out.read()
Expand All @@ -23,10 +23,10 @@ Capture stdout/stderr in StringIO:

```python
from io import StringIO
from wurlitzer import capture, STDOUT
from wurlitzer import pipes, STDOUT

out = StringIO()
with capture(stdout=out, stderr=STDOUT):
with pipes(stdout=out, stderr=STDOUT):
call_some_c_function()

stdout = out.getvalue()
Expand All @@ -36,9 +36,9 @@ Forward C-level stdout/stderr to Python sys.stdout/stderr,
which may already be forwarded somewhere by the environment, e.g. IPython:

```python
from wurlitzer import redirect_to_sys
from wurlitzer import sys_pipes

with redirect_to_sys():
with sys_pipes():
call_some_c_function()
```

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
long_description = """
Context managers for capturing C-level output::
from wurlitzer import capture
from wurlitzer import pipes
with capture() as (stdout, stderr):
with pipes() as (stdout, stderr):
call_c_function()
out = stdout.read()
err = stderr.read()
Expand Down

0 comments on commit 7f95a69

Please sign in to comment.