summaryrefslogtreecommitdiff
path: root/vendor/CherryPy-3.2.0/sphinx/util/test-doc.py
diff options
context:
space:
mode:
authorNick Daly <Nick.M.Daly@gmail.com>2013-04-23 17:49:22 -0500
committerNick Daly <Nick.M.Daly@gmail.com>2013-04-23 17:49:22 -0500
commitf55c7a48ea534e342e6efbd4c7edaf1b1e07f61b (patch)
treefec45d97e4e976ef7ba5dde83f538fcf19092bc0 /vendor/CherryPy-3.2.0/sphinx/util/test-doc.py
parent157226f1b88bc090b677f9896aa62a0c734ebf14 (diff)
Merged with James's upstream.
Hope I did it right. If I screwed up, withsqlite is borked.
Diffstat (limited to 'vendor/CherryPy-3.2.0/sphinx/util/test-doc.py')
-rw-r--r--vendor/CherryPy-3.2.0/sphinx/util/test-doc.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/CherryPy-3.2.0/sphinx/util/test-doc.py b/vendor/CherryPy-3.2.0/sphinx/util/test-doc.py
deleted file mode 100644
index 2942360..0000000
--- a/vendor/CherryPy-3.2.0/sphinx/util/test-doc.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from __future__ import print_function
-import sys
-import inspect
-import docutils.utils
-import docutils.parsers.rst
-from StringIO import StringIO
-
-def print_with_line_numbers(block):
- stream = StringIO(block)
- for number, line in enumerate(stream):
- number += 1
- print(number, line.rstrip())
-
-target_class_spec = sys.argv[1]
-import cherrypy
-target_class = eval(target_class_spec)
-source = inspect.getdoc(target_class)
-print_with_line_numbers(source)
-parser = docutils.parsers.rst.Parser()
-settings = None ## ?
-document = docutils.utils.new_document(source, settings)
-parser.parse(source, document)