Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5680d0c

Browse files
committed
Merged revisions 62246-62259 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r62246 | georg.brandl | 2008-04-09 19:57:38 +0200 (Mi, 09 Apr 2008) | 2 lines #2585: initialize code attribute of HTTPError. ........ r62247 | georg.brandl | 2008-04-09 19:58:56 +0200 (Mi, 09 Apr 2008) | 2 lines Add :issue: directive for easy linking to bugs.python.org. ........ r62249 | gregory.p.smith | 2008-04-09 20:18:43 +0200 (Mi, 09 Apr 2008) | 2 lines Add a note about the zlib.decompressobj().flush() fix. ........ r62255 | martin.v.loewis | 2008-04-09 20:56:20 +0200 (Mi, 09 Apr 2008) | 2 lines Package wininst*.exe from distutils/command. ........ r62259 | andrew.kuchling | 2008-04-10 00:28:43 +0200 (Do, 10 Apr 2008) | 1 line Try out the new issue role. Thanks, Georg! ........
1 parent 3de92bf commit 5680d0c

5 files changed

Lines changed: 28 additions & 7 deletions

File tree

Doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ---------------------
1515

1616
extensions = ['sphinx.ext.refcounting', 'sphinx.ext.coverage',
17-
'sphinx.ext.doctest']
17+
'sphinx.ext.doctest', 'pyspecific']
1818
templates_path = ['tools/sphinxext']
1919

2020
# General substitutions.

Doc/tools/sphinxext/pyspecific.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
pyspecific.py
4+
~~~~~~~~~~~~~
5+
6+
Sphinx extension with Python doc-specific markup.
7+
8+
:copyright: 2008 by Georg Brandl.
9+
:license: Python license.
10+
"""
11+
12+
ISSUE_URI = 'http://bugs.python.org/issue%s'
13+
14+
from docutils import nodes, utils
15+
16+
def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
17+
issue = utils.unescape(text)
18+
text = 'issue ' + issue
19+
refnode = nodes.reference(text, text, refuri=ISSUE_URI % issue)
20+
return [refnode], []
21+
22+
23+
def setup(app):
24+
app.add_role('issue', issue_role)

Doc/whatsnew/2.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ Here are all of the changes that Python 2.6 makes to the core Python language.
12171217
>>> f(**ud)
12181218
['a', 'b']
12191219

1220-
.. Patch 1686487
1220+
(Contributed by Alexander Belopolsky; :issue:`1686487`.)
12211221

12221222
* Tuples now have an :meth:`index` method matching the list type's
12231223
:meth:`index` method::

Lib/urllib2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__(self, url, code, msg, hdrs, fp):
157157
# file object. If this happens, the simplest workaround is to
158158
# not initialize the base classes.
159159
if fp is not None:
160-
self.__super_init(fp, hdrs, url)
160+
self.__super_init(fp, hdrs, url, code)
161161

162162
def __str__(self):
163163
return 'HTTP Error %s: %s' % (self.code, self.msg)

Tools/msi/msi.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,7 @@ def add_files(db):
969969
lib.glob("*.gif")
970970
lib.add_file("idle.icns")
971971
if dir=="command" and parent.physical=="distutils":
972-
lib.add_file("wininst-6.0.exe")
973-
lib.add_file("wininst-7.1.exe")
974-
lib.add_file("wininst-8.0.exe")
975-
lib.add_file("wininst-9.0.exe")
972+
lib.glob("wininst*.exe")
976973
if dir=="setuptools":
977974
lib.add_file("cli.exe")
978975
lib.add_file("gui.exe")

0 commit comments

Comments
 (0)