Remove deprecated feature: sphinx.util.nodes.process_only_nodes()

This commit is contained in:
Takeshi KOMIYA
2017-04-27 21:49:19 +09:00
parent 4874ae2c1d
commit b4eadba3a1
2 changed files with 1 additions and 28 deletions
+1 -2
View File
@@ -12,7 +12,6 @@
import re
from docutils import nodes
from sphinx.util.nodes import process_only_nodes
import pytest
@@ -46,7 +45,7 @@ def test_sectioning(app, status, warning):
app.builder.build(['only'])
doctree = app.env.get_doctree('only')
process_only_nodes(doctree, app.builder.tags)
app.env.apply_post_transforms(doctree, 'only')
parts = [getsects(n)
for n in [_n for _n in doctree.children if isinstance(_n, nodes.section)]]