Commits

Georg Brandl  committed a1d4ec6

Reintroduce env.note_versionchange().

  • Participants
  • Parent commits 9e24f94

Comments (0)

Files changed (2)

File sphinx/directives/other.py

         else:
             ret = [node]
         env = self.state.document.settings.env
-        env.versionchanges.setdefault(node['version'], []).append(
-            (node['type'], env.temp_data['docname'], self.lineno,
-             # XXX: python domain specific
-             env.temp_data.get('py:module'),
-             env.temp_data.get('object'),
-             node.astext()))
+        env.note_versionchange(node['type'], node['version'], node, self.lineno)
         return ret
 
 

File sphinx/environment.py

     def note_dependency(self, filename):
         self.dependencies.setdefault(self.docname, set()).add(filename)
 
+    def note_versionchange(self, type, version, node, lineno):
+        self.versionchanges.setdefault(version, []).append(
+            (type, self.temp_data['docname'], lineno,
+             self.temp_data.get('py:module'),
+             self.temp_data.get('object'), node.astext()))
+
     # post-processing of read doctrees
 
     def filter_messages(self, doctree):