[py-svn] r37745 - py/trunk/py/io
hpk at codespeak.net
hpk at codespeak.net
Thu Feb 1 16:35:30 CET 2007
Author: hpk
Date: Thu Feb 1 16:35:29 2007
New Revision: 37745
Modified:
py/trunk/py/io/stdcapture.py
Log:
fixing and adding to docstring
Modified: py/trunk/py/io/stdcapture.py
==============================================================================
--- py/trunk/py/io/stdcapture.py (original)
+++ py/trunk/py/io/stdcapture.py Thu Feb 1 16:35:29 2007
@@ -52,8 +52,8 @@
class StdCapture(Capture):
""" capture sys.stdout/sys.stderr (but not system level fd 1 and 2).
- this captures only "In-Memory" and is currently intended to be
- used by the unittest package to capture print-statements in tests.
+ This class allows to capture writes to sys.stdout|stderr "in-memory"
+ and will raise errors on tries to read from sys.stdin.
"""
def __init__(self):
self.oldin = sys.stdin
More information about the py-svn
mailing list