Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(21)

Delta Between Two Patch Sets: Doc/tools/extensions/pyspecific.py

Issue 22695: open() declared deprecated in python 3 docs
Left Patch Set: Created 5 years, 3 months ago
Right Patch Set: Created 5 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 """ 2 """
3 pyspecific.py 3 pyspecific.py
4 ~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~
5 5
6 Sphinx extension with Python doc-specific markup. 6 Sphinx extension with Python doc-specific markup.
7 7
8 :copyright: 2008-2014 by Georg Brandl. 8 :copyright: 2008-2014 by Georg Brandl.
9 :license: Python license. 9 :license: Python license.
10 """ 10 """
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 messages = [] 172 messages = []
173 if self.content: 173 if self.content:
174 self.state.nested_parse(self.content, self.content_offset, node) 174 self.state.nested_parse(self.content, self.content_offset, node)
175 if len(node): 175 if len(node):
176 if isinstance(node[0], nodes.paragraph) and node[0].rawsource: 176 if isinstance(node[0], nodes.paragraph) and node[0].rawsource:
177 content = nodes.inline(node[0].rawsource, translatable=True) 177 content = nodes.inline(node[0].rawsource, translatable=True)
178 content.source = node[0].source 178 content.source = node[0].source
179 content.line = node[0].line 179 content.line = node[0].line
180 content += node[0].children 180 content += node[0].children
181 node[0].replace_self(nodes.paragraph('', '', content)) 181 node[0].replace_self(nodes.paragraph('', '', content))
182 node[0].insert(0, nodes.inline('', '%s: ' % text, 182 node[0].insert(0, nodes.inline('', '%s: ' % text,
storchaka 2014/11/01 20:54:30 Should not this line be unindented?
berkerpeksag 2014/11/01 21:25:26 Good catch! Will update the patch. Thanks.
berkerpeksag 2014/11/02 13:10:52 Done.
183 classes=['versionmodified'])) 183 classes=['versionmodified']))
184 else: 184 else:
185 para = nodes.paragraph('', '', 185 para = nodes.paragraph('', '',
186 nodes.inline('', '%s.' % text, 186 nodes.inline('', '%s.' % text,
187 classes=['versionmodified'])) 187 classes=['versionmodified']))
188 node.append(para) 188 node.append(para)
189 env = self.state.document.settings.env 189 env = self.state.document.settings.env
190 env.note_versionchange('deprecated', version[0], node, self.lineno) 190 env.note_versionchange('deprecated', version[0], node, self.lineno)
191 return [node] + messages 191 return [node] + messages
192 192
193 193
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 app.add_builder(suspicious.CheckSuspiciousMarkupBuilder) 342 app.add_builder(suspicious.CheckSuspiciousMarkupBuilder)
343 app.add_description_unit('opcode', 'opcode', '%s (opcode)', 343 app.add_description_unit('opcode', 'opcode', '%s (opcode)',
344 parse_opcode_signature) 344 parse_opcode_signature)
345 app.add_description_unit('pdbcommand', 'pdbcmd', '%s (pdb command)', 345 app.add_description_unit('pdbcommand', 'pdbcmd', '%s (pdb command)',
346 parse_pdb_command) 346 parse_pdb_command)
347 app.add_description_unit('2to3fixer', '2to3fixer', '%s (2to3 fixer)') 347 app.add_description_unit('2to3fixer', '2to3fixer', '%s (2to3 fixer)')
348 app.add_directive_to_domain('py', 'decorator', PyDecoratorFunction) 348 app.add_directive_to_domain('py', 'decorator', PyDecoratorFunction)
349 app.add_directive_to_domain('py', 'decoratormethod', PyDecoratorMethod) 349 app.add_directive_to_domain('py', 'decoratormethod', PyDecoratorMethod)
350 app.add_directive('miscnews', MiscNews) 350 app.add_directive('miscnews', MiscNews)
351 return {'version': '1.0', 'parallel_read_safe': True} 351 return {'version': '1.0', 'parallel_read_safe': True}
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+