Skip to content

Commit 7f95a69

Browse files
committed
fix names in README, long_description
1 parent abba15b commit 7f95a69

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Capture C-level stdout/stderr pipes in Python via `os.dup2`.
1111
Capture stdout/stderr in pipes:
1212

1313
```python
14-
from wurlitzer import capture
14+
from wurlitzer import pipes
1515

16-
with capture() as (out, err):
16+
with pipes() as (out, err):
1717
call_some_c_function()
1818

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

2424
```python
2525
from io import StringIO
26-
from wurlitzer import capture, STDOUT
26+
from wurlitzer import pipes, STDOUT
2727

2828
out = StringIO()
29-
with capture(stdout=out, stderr=STDOUT):
29+
with pipes(stdout=out, stderr=STDOUT):
3030
call_some_c_function()
3131

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

3838
```python
39-
from wurlitzer import redirect_to_sys
39+
from wurlitzer import sys_pipes
4040

41-
with redirect_to_sys():
41+
with sys_pipes():
4242
call_some_c_function()
4343
```
4444

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
long_description = """
77
Context managers for capturing C-level output::
88
9-
from wurlitzer import capture
9+
from wurlitzer import pipes
1010
11-
with capture() as (stdout, stderr):
11+
with pipes() as (stdout, stderr):
1212
call_c_function()
1313
out = stdout.read()
1414
err = stderr.read()

0 commit comments

Comments
 (0)