diff options
| author | Georg Brandl <georg@python.org> | 2013-10-12 20:55:34 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2013-10-12 20:55:34 (GMT) |
| commit | a14034872bfe9b5fca07125e7369b8c7030c164b (patch) | |
| tree | c1208f8c230721383c7240ee8e61cbe56cd4c1a3 /Doc/tools/sphinxext/c_annotations.py | |
| parent | f54ab1f5b19498b1d1946dad7092e0162695faa6 (diff) | |
| download | cpython-a14034872bfe9b5fca07125e7369b8c7030c164b.zip cpython-a14034872bfe9b5fca07125e7369b8c7030c164b.tar.gz cpython-a14034872bfe9b5fca07125e7369b8c7030c164b.tar.bz2 | |
Invert logic of new limited-API annotation and call it "stable ABI".
Diffstat (limited to 'Doc/tools/sphinxext/c_annotations.py')
| -rw-r--r-- | Doc/tools/sphinxext/c_annotations.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/tools/sphinxext/c_annotations.py b/Doc/tools/sphinxext/c_annotations.py index c93fb7c..8b5167a 100644 --- a/Doc/tools/sphinxext/c_annotations.py +++ b/Doc/tools/sphinxext/c_annotations.py @@ -73,10 +73,10 @@ class Annotations(dict): par = node.parent if par['domain'] != 'c': continue - if par['notlimited']: - node.insert(0, nodes.emphasis(' Not part of the stable API.', - ' Not part of the stable API.', - classes=['notlimited'])) + if par['stableabi']: + node.insert(0, nodes.emphasis(' Part of the stable ABI.', + ' Part of the stable ABI.', + classes=['stableabi'])) if par['objtype'] != 'function': continue if not par[0].has_key('names') or not par[0]['names']: @@ -108,10 +108,10 @@ def setup(app): # monkey-patch C object... CObject.option_spec = { 'noindex': directives.flag, - 'notlimited': directives.flag, + 'stableabi': directives.flag, } old_handle_signature = CObject.handle_signature def new_handle_signature(self, sig, signode): - signode.parent['notlimited'] = 'notlimited' in self.options + signode.parent['stableabi'] = 'stableabi' in self.options return old_handle_signature(self, sig, signode) CObject.handle_signature = new_handle_signature |
