summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-17 22:29:27 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-17 22:29:27 (GMT)
commitaf7c5b0bb556c33d0d4b710ae1c5477abf7fc0d8 (patch)
tree701707f9baa83865e4ec6ac46da52d1fdb77f5c3 /Doc/tools
parentf8d60ca0c44998506e8b5630cf933c9eff687979 (diff)
parentd065c489910e86fb8ed7219205da65e224f03d94 (diff)
downloadcpython-af7c5b0bb556c33d0d4b710ae1c5477abf7fc0d8.zip
cpython-af7c5b0bb556c33d0d4b710ae1c5477abf7fc0d8.tar.gz
cpython-af7c5b0bb556c33d0d4b710ae1c5477abf7fc0d8.tar.bz2
merge 3.4
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/sphinxext/c_annotations.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/tools/sphinxext/c_annotations.py b/Doc/tools/sphinxext/c_annotations.py
index 8b5167a..cf9ad9e 100644
--- a/Doc/tools/sphinxext/c_annotations.py
+++ b/Doc/tools/sphinxext/c_annotations.py
@@ -81,7 +81,10 @@ class Annotations(dict):
continue
if not par[0].has_key('names') or not par[0]['names']:
continue
- entry = self.get(par[0]['names'][0])
+ name = par[0]['names'][0]
+ if name.startswith("c."):
+ name = name[2:]
+ entry = self.get(name)
if not entry:
continue
elif entry.result_type not in ("PyObject*", "PyVarObject*"):