From 3ad6642a499634fc38cb3ce4227b3d0531e57308 Mon Sep 17 00:00:00 2001 From: hpk Date: Thu, 1 Feb 2007 16:35:29 +0100 Subject: [PATCH] [svn r37745] fixing and adding to docstring --HG-- branch : trunk --- py/io/stdcapture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/io/stdcapture.py b/py/io/stdcapture.py index f9a723c1d..be14cce99 100644 --- a/py/io/stdcapture.py +++ b/py/io/stdcapture.py @@ -52,8 +52,8 @@ class StdCaptureFD(Capture): 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