code
stringlengths
3
6.57k
signode.insert(0, addnodes.desc_annotation('coroutine ', 'coroutine ')
PyCoroutineFunction(PyCoroutineMixin, PyModulelevel)
run(self)
PyModulelevel.run(self)
PyCoroutineMethod(PyCoroutineMixin, PyClassmember)
run(self)
PyClassmember.run(self)
DeprecatedRemoved(Directive)
run(self)
addnodes.versionmodified()
len(self.arguments)
nodes.paragraph(self.arguments[2], '', *inodes)
node.append(para)
self.state.nested_parse(self.content, self.content_offset, node)
len(node)
isinstance(node[0], nodes.paragraph)
nodes.inline(node[0].rawsource, translatable=True)
replace_self(nodes.paragraph('', '', content)
node.append(para)
env.note_versionchange('deprecated', version[0], node, self.lineno)
re.compile('([Ii])
re.compile(r"(?im)
in (.*?)
MiscNews(Directive)
run(self)
path.dirname(path.abspath(source)
path.join(source_dir, fname)
self.state.document.settings.record_dependencies.add(fpath)
codecs.open(fpath, encoding='utf-8')
fp.read()
fp.close()
nodes.strong(text, text)
whatsnew_re.sub(r'\1', content)
content.splitlines()
self.state_machine.insert_input(lines, fname)
PydocTopicsBuilder(Builder)
init(self)
get_outdated_docs(self)
get_target_uri(self, docname, typ=None)
write(self, *ignored)
TextWriter(self)
len(pydoc_topic_labels)
self.warn('label %r not in documentation' % label)
self.env.get_and_resolve_doctree(docname, self)
new_document('<section node>')
document.append(doctree.ids[labelid])
StringOutput(encoding='utf-8')
writer.write(document, destination)
finish(self)
open(path.join(self.outdir, 'topics.py')
f.write('# -*- coding: utf-8 -*-\n'.encode('utf-8')
f.write(('# Autogenerated by Sphinx on %s\n' % asctime()
encode('utf-8')
f.write(('topics = ' + pformat(self.topics)
encode('utf-8')
f.close()
re.compile(r'(\w+(?:\+\d)
parse_opcode_signature(env, sig, signode)
opcode_sig_re.match(sig)
m.groups()
addnodes.desc_name(opname, opname)
addnodes.desc_parameterlist()
addnodes.desc_parameter(arglist, arglist)
opname.strip()
re.compile(r'([a-z()
parse_pdb_command(env, sig, signode)
pdbcmd_sig_re.match(sig)
m.groups()
name.replace('(', '')
replace(')
addnodes.desc_name(name, name)
addnodes.desc_addname(' '+args, ' '+args)
setup(app)
app.add_role('issue', issue_role)
app.add_role('source', source_role)
app.add_directive('impl-detail', ImplementationDetail)
app.add_directive('deprecated-removed', DeprecatedRemoved)
app.add_builder(PydocTopicsBuilder)
app.add_builder(suspicious.CheckSuspiciousMarkupBuilder)
app.add_description_unit('opcode', 'opcode', '%s (opcode)
app.add_description_unit('pdbcommand', 'pdbcmd', '%s (pdb command)
app.add_description_unit('2to3fixer', '2to3fixer', '%s (2to3 fixer)
app.add_directive_to_domain('py', 'decorator', PyDecoratorFunction)
app.add_directive_to_domain('py', 'decoratormethod', PyDecoratorMethod)
app.add_directive_to_domain('py', 'coroutinefunction', PyCoroutineFunction)
app.add_directive_to_domain('py', 'coroutinemethod', PyCoroutineMethod)
app.add_directive('miscnews', MiscNews)
Foundation (ASF)
DebugExecutor(BaseExecutor)
threading.Event()
__init__(self)
super()
__init__()
conf.getboolean("debug", "fail_fast")
execute_async(self, *args, **kwargs)
sync(self)
self.tasks_to_run.pop(0)
self.log.info("Setting %s to %s", ti.key, State.UPSTREAM_FAILED)
ti.set_state(State.UPSTREAM_FAILED)
self.change_state(ti.key, State.UPSTREAM_FAILED)