mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
merge with 3.3
This commit is contained in:
commit
793d8478ee
3 changed files with 11 additions and 8 deletions
3
.hgeol
3
.hgeol
|
|
@ -10,6 +10,8 @@
|
|||
**.vsprops = BIN
|
||||
|
||||
**.aif = BIN
|
||||
**.aifc = BIN
|
||||
**.aiff = BIN
|
||||
**.au = BIN
|
||||
**.bmp = BIN
|
||||
**.db = BIN
|
||||
|
|
@ -23,6 +25,7 @@
|
|||
**.png = BIN
|
||||
**.psd = BIN
|
||||
**.tar = BIN
|
||||
**.wav = BIN
|
||||
**.xar = BIN
|
||||
**.zip = BIN
|
||||
|
||||
|
|
|
|||
|
|
@ -73,10 +73,10 @@ def add_annotations(self, app, doctree):
|
|||
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
|
||||
|
|
|
|||
|
|
@ -173,6 +173,6 @@ .refcount {
|
|||
color: #060;
|
||||
}
|
||||
|
||||
.notlimited {
|
||||
color: #922;
|
||||
.stableabi {
|
||||
color: #229;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue