summaryrefslogtreecommitdiff
path: root/sandbox/py-rest-doc/sphinx/util.py
diff options
context:
space:
mode:
authorgbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-05-27 11:39:36 +0000
committergbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-05-27 11:39:36 +0000
commitddb5bf64d4ba43c296b1cd41cad2f2d4b50cf0d0 (patch)
tree725829828739d157a9853c6edbb1b51a736760c3 /sandbox/py-rest-doc/sphinx/util.py
parent25790d64668034fea3d9a189811b87ba0de984df (diff)
downloaddocutils-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.py9
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=()):