diff options
author | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-05-27 11:39:36 +0000 |
---|---|---|
committer | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-05-27 11:39:36 +0000 |
commit | ddb5bf64d4ba43c296b1cd41cad2f2d4b50cf0d0 (patch) | |
tree | 725829828739d157a9853c6edbb1b51a736760c3 /sandbox/py-rest-doc/sphinx/util.py | |
parent | 25790d64668034fea3d9a189811b87ba0de984df (diff) | |
download | docutils-ddb5bf64d4ba43c296b1cd41cad2f2d4b50cf0d0.tar.gz |
Adapted the build system a bit; it's now much more logical.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5164 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/util.py')
-rw-r--r-- | sandbox/py-rest-doc/sphinx/util.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sandbox/py-rest-doc/sphinx/util.py b/sandbox/py-rest-doc/sphinx/util.py index 65047fe3a..02dc59643 100644 --- a/sandbox/py-rest-doc/sphinx/util.py +++ b/sandbox/py-rest-doc/sphinx/util.py @@ -37,18 +37,13 @@ def ensuredir(path): raise -def status_iterator(iterable, pre='', post='', - colorfunc=lambda x: x, stream=sys.stdout): +def status_iterator(iterable, colorfunc=lambda x: x, stream=sys.stdout): """Print out each item before yielding it.""" - if pre: - print >>stream, pre, - for item in iterable: print >>stream, colorfunc(item), stream.flush() yield item - - print >>stream, post + print >>stream def get_matching_files(dirname, pattern, exclude=()): |