summaryrefslogtreecommitdiffstats
path: root/doc/ext
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-01-13 13:54:32 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2012-01-13 13:55:38 -0800
commit20b4d895124cee887568ca8723ce0d3ffdc3a05a (patch)
tree0d8aab029dcbb951a0c0e6dccad4009c4bdd5d2c /doc/ext
parente08eeea94f0bc27d5bff5ae428e36fb32aaef58c (diff)
downloadnova-20b4d895124cee887568ca8723ce0d3ffdc3a05a.tar.gz
nova-20b4d895124cee887568ca8723ce0d3ffdc3a05a.tar.xz
nova-20b4d895124cee887568ca8723ce0d3ffdc3a05a.zip
Remove a whole bunch of unused imports
Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
Diffstat (limited to 'doc/ext')
-rw-r--r--doc/ext/nova_todo.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/ext/nova_todo.py b/doc/ext/nova_todo.py
index a8e81a483..2bd652071 100644
--- a/doc/ext/nova_todo.py
+++ b/doc/ext/nova_todo.py
@@ -2,7 +2,6 @@
# This is a hack of the builtin todo extension, to make the todo_list more user friendly
from sphinx.ext.todo import *
-from docutils.parsers.rst import directives
import re
def _(s):
@@ -22,12 +21,12 @@ def process_todo_nodes(app, doctree, fromdocname):
env.todo_all_todos = []
- # remove the item that was added in the constructor, since I'm tired of
+ # remove the item that was added in the constructor, since I'm tired of
# reading through docutils for the proper way to construct an empty list
lists = []
for i in xrange(5):
lists.append(nodes.bullet_list("", nodes.Text('','')))
- lists[i].remove(lists[i][0])
+ lists[i].remove(lists[i][0])
lists[i]['classes'].append('todo_list')
for node in doctree.traverse(todolist):
@@ -60,14 +59,14 @@ def process_todo_nodes(app, doctree, fromdocname):
para['classes'].append('todo_link')
todo_entry = todo_info['todo']
-
+
env.resolve_references(todo_entry, todo_info['docname'], app.builder)
item = nodes.list_item('', para)
todo_entry[1]['classes'].append('details')
comment = todo_entry[1]
-
+
m = re.match(r"^P(\d)", comment.astext())
priority = 5
if m: