summaryrefslogtreecommitdiff
path: root/sandbox/richard/pythonpoint/pythonpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/richard/pythonpoint/pythonpoint.py')
-rw-r--r--sandbox/richard/pythonpoint/pythonpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/richard/pythonpoint/pythonpoint.py b/sandbox/richard/pythonpoint/pythonpoint.py
index ad0f96d1a..3313f0513 100644
--- a/sandbox/richard/pythonpoint/pythonpoint.py
+++ b/sandbox/richard/pythonpoint/pythonpoint.py
@@ -1,6 +1,6 @@
import cStringIO, cgi, sys, urllib
import docutils.utils
-from docutils.parsers.restructuredtext import Parser
+from docutils.parsers import get_parser_class
class DumbPythonPointFormatter:
def __init__(self):
@@ -330,9 +330,9 @@ class DumbPythonPointFormatter:
self.w(cgi.escape(node.data))
def main(filename, debug=0):
- parser = Parser()
+ parser = get_parser_class('rest')()
input = open(filename).read()
- document = dps.utils.newdocument()
+ document = docutils.utils.new_document(parser)
parser.parse(input, document)
if debug == 1:
print document.pformat()