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

Skip to content

Commit 6a59b70

Browse files
committed
Merge 3.2
2 parents 80f7102 + 420f698 commit 6a59b70

8 files changed

Lines changed: 24 additions & 15 deletions

File tree

Doc/howto/advocacy.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ the organizations that use Python.
264264

265265
**What are the restrictions on Python's use?**
266266

267-
They're practically nonexistent. Consult the :file:`Misc/COPYRIGHT` file in the
268-
source distribution, or the section :ref:`history-and-license` for the full
267+
They're practically nonexistent. Consult :ref:`history-and-license` for the full
269268
language, but it boils down to three conditions:
270269

271270
* You have to leave the copyright notice on the software; if you don't include

Doc/howto/cporting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ behave slightly differently from real Capsules. Specifically:
261261
copy as you see fit.)
262262

263263
You can find :file:`capsulethunk.h` in the Python source distribution
264-
in the :file:`Doc/includes` directory. We also include it here for
265-
your reference; here is :file:`capsulethunk.h`:
264+
as :source:`Doc/includes/capsulethunk.h`. We also include it here for
265+
your convenience:
266266

267267
.. literalinclude:: ../includes/capsulethunk.h
268268

Doc/howto/regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ and more.
360360

361361
You can learn about this by interactively experimenting with the :mod:`re`
362362
module. If you have :mod:`tkinter` available, you may also want to look at
363-
:file:`Tools/demo/redemo.py`, a demonstration program included with the
363+
:source:`Tools/demo/redemo.py`, a demonstration program included with the
364364
Python distribution. It allows you to enter REs and strings, and displays
365365
whether the RE matches or fails. :file:`redemo.py` can be quite useful when
366366
trying to debug a complicated RE. Phil Schwartz's `Kodos
@@ -495,7 +495,7 @@ more convenient. If a program contains a lot of regular expressions, or re-uses
495495
the same ones in several locations, then it might be worthwhile to collect all
496496
the definitions in one place, in a section of code that compiles all the REs
497497
ahead of time. To take an example from the standard library, here's an extract
498-
from the now deprecated :file:`xmllib.py`::
498+
from the now-defunct Python 2 standard :mod:`xmllib` module::
499499

500500
ref = re.compile( ... )
501501
entityref = re.compile( ... )

Doc/library/markup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ definition of the Python bindings for the DOM and SAX interfaces.
2323
html.rst
2424
html.parser.rst
2525
html.entities.rst
26-
pyexpat.rst
26+
xml.etree.elementtree.rst
2727
xml.dom.rst
2828
xml.dom.minidom.rst
2929
xml.dom.pulldom.rst
3030
xml.sax.rst
3131
xml.sax.handler.rst
3232
xml.sax.utils.rst
3333
xml.sax.reader.rst
34-
xml.etree.elementtree.rst
34+
pyexpat.rst

Lib/distutils/command/bdist_msi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def run(self):
260260
self.db.Commit()
261261

262262
if hasattr(self.distribution, 'dist_files'):
263-
tup = 'bdist_msi', self.target_version or 'any', fullname
263+
tup = 'bdist_msi', self.target_version or 'any', installer_name
264264
self.distribution.dist_files.append(tup)
265265

266266
if not self.keep_temp:

Lib/distutils/tests/test_bdist_msi.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
"""Tests for distutils.command.bdist_msi."""
2-
import unittest
32
import sys
4-
3+
import unittest
54
from test.support import run_unittest
6-
75
from distutils.tests import support
86

9-
@unittest.skipUnless(sys.platform=="win32", "These tests are only for win32")
7+
8+
@unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
109
class BDistMSITestCase(support.TempdirManager,
1110
support.LoggingSilencer,
1211
unittest.TestCase):
1312

1413
def test_minimal(self):
1514
# minimal test XXX need more tests
1615
from distutils.command.bdist_msi import bdist_msi
17-
pkg_pth, dist = self.create_dist()
16+
project_dir, dist = self.create_dist()
1817
cmd = bdist_msi(dist)
1918
cmd.ensure_finalized()
19+
cmd.run()
20+
21+
bdists = os.listdir(os.path.join(project_dir, 'dist'))
22+
self.assertEqual(bdists, ['foo-0.1.msi'])
23+
24+
# bug #13719: upload ignores bdist_msi files
25+
self.assertEqual(dist.dist_files,
26+
[('bdist_msi', 'any', 'dist/foo-0.1.msi')])
27+
2028

2129
def test_suite():
2230
return unittest.makeSuite(BDistMSITestCase)

Lib/xmlrpc/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""XML-RPC Servers.
1+
r"""XML-RPC Servers.
22
33
This module can be used to create simple XML-RPC servers
44
by creating a server and either installing functions, a

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Issue #13719: Make the distutils upload command aware of bdist_msi products.
17+
1618
- Issue #14007: Accept incomplete TreeBuilder objects (missing start, end,
1719
data or close method) for the Python implementation as well.
1820
Drop the no-op TreeBuilder().xml() method from the C implementation.

0 commit comments

Comments
 (0)