]> granicus.if.org Git - python/log
python
13 years agoAdd FIXME note as a reminder
Éric Araujo [Fri, 26 Aug 2011 14:35:19 +0000 (16:35 +0200)]
Add FIXME note as a reminder

13 years agoBranch merge
Éric Araujo [Fri, 26 Aug 2011 14:32:36 +0000 (16:32 +0200)]
Branch merge

13 years agoDocument the "optional" argument of distutils’ Extension class
Éric Araujo [Thu, 25 Aug 2011 22:45:18 +0000 (00:45 +0200)]
Document the "optional" argument of distutils’ Extension class

13 years agoFix type information in distutils API reference (#9302).
Éric Araujo [Fri, 26 Aug 2011 00:08:20 +0000 (02:08 +0200)]
Fix type information in distutils API reference (#9302).

Initial patch by Yue Shuaijie.

13 years agoBackport tests for the distutils install command
Éric Araujo [Fri, 26 Aug 2011 00:06:27 +0000 (02:06 +0200)]
Backport tests for the distutils install command

13 years agoTry to fix test_distutils on Windows (#12678)
Éric Araujo [Fri, 26 Aug 2011 00:05:44 +0000 (02:05 +0200)]
Try to fix test_distutils on Windows (#12678)

13 years agoAdd tests for build_ext --user (backport from 3.2)
Éric Araujo [Fri, 26 Aug 2011 00:00:14 +0000 (02:00 +0200)]
Add tests for build_ext --user (backport from 3.2)

13 years agoRefactor helpers for compiling the xx module in distutils tests.
Éric Araujo [Thu, 25 Aug 2011 23:56:15 +0000 (01:56 +0200)]
Refactor helpers for compiling the xx module in distutils tests.

I need to copy the xxmodule.c file in other tests, so I moved the
support code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
  fiddling.

I also took out the fixup_build_ext function, which is needed for tests
to pass on Unix shared builds and Windows debug builds.

Finally, I cleaned up a few things:
- don’t remove directories in tearDown when the parent class’ tearDown
  has already registered the directories for removal
- simplify restoration of sys.path
- remove a few unused names found by pyflakes.

13 years agoIssue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoid
Charles-François Natali [Thu, 25 Aug 2011 19:20:54 +0000 (21:20 +0200)]
Issue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoid
them being inherited by other subprocesses.

13 years agoClose #12838: fix range() call.
Georg Brandl [Thu, 25 Aug 2011 09:52:26 +0000 (11:52 +0200)]
Close #12838: fix range() call.

13 years agoUpdate link to the decimal arithmetic specification.
Raymond Hettinger [Thu, 25 Aug 2011 02:13:17 +0000 (19:13 -0700)]
Update link to the decimal arithmetic specification.

13 years agoIssue #4106: Fix occasional exceptions printed out by multiprocessing on interpreter...
Antoine Pitrou [Wed, 24 Aug 2011 20:41:05 +0000 (22:41 +0200)]
Issue #4106: Fix occasional exceptions printed out by multiprocessing on interpreter shutdown.

This bug doesn't seem to exist on 3.2, where daemon threads are killed
before Py_Finalize() is entered.

13 years agoIssue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
Antoine Pitrou [Tue, 23 Aug 2011 17:54:20 +0000 (19:54 +0200)]
Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
Also added some tests.

13 years agoIssue #12821: Fix test_fcntl failures on OpenBSD 5.
Charles-François Natali [Tue, 23 Aug 2011 17:42:02 +0000 (19:42 +0200)]
Issue #12821: Fix test_fcntl failures on OpenBSD 5.

13 years ago#9200: backport tests but run them on wide builds only.
Ezio Melotti [Mon, 22 Aug 2011 20:46:30 +0000 (23:46 +0300)]
#9200: backport tests but run them on wide builds only.

13 years agoIssue #12678: Fix distutils sdist test on Windows.
Nadeem Vawda [Sun, 21 Aug 2011 20:40:04 +0000 (22:40 +0200)]
Issue #12678: Fix distutils sdist test on Windows.

Patch by Jeremy Kloth.

13 years agoAdd missing name in shutil.__all__
Éric Araujo [Sun, 21 Aug 2011 14:14:01 +0000 (16:14 +0200)]
Add missing name in shutil.__all__

13 years ago#5301: add image/vnd.microsoft.icon (.ico) MIME type
Sandro Tosi [Sat, 20 Aug 2011 22:15:56 +0000 (00:15 +0200)]
#5301: add image/vnd.microsoft.icon (.ico) MIME type

13 years agoIssue #12213: make it clear that BufferedRWPair shouldn't be called with the
Antoine Pitrou [Sat, 20 Aug 2011 17:51:31 +0000 (19:51 +0200)]
Issue #12213: make it clear that BufferedRWPair shouldn't be called with the
same object as reader and writer, and deemphasize it in document order.

13 years ago#12787: link original MultiCall proposal to webarchive and in a footnote
Sandro Tosi [Sat, 20 Aug 2011 15:05:15 +0000 (17:05 +0200)]
#12787: link original MultiCall proposal to webarchive and in a footnote

13 years agoIssue #12213: Fix a buffering bug with interleaved reads and writes that
Antoine Pitrou [Sat, 20 Aug 2011 13:40:58 +0000 (15:40 +0200)]
Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on io.BufferedRandom streams.

13 years agoIssue #12326: sys.platform is now always 'linux2' on Linux
Victor Stinner [Sat, 20 Aug 2011 12:02:38 +0000 (14:02 +0200)]
Issue #12326: sys.platform is now always 'linux2' on Linux

Even if Python is compiled on Linux 3.

13 years agofix description of \r; thanks to Thomas Waldmann from docs@
Sandro Tosi [Fri, 19 Aug 2011 20:54:33 +0000 (22:54 +0200)]
fix description of \r; thanks to Thomas Waldmann from docs@

13 years agomerge heads
Sandro Tosi [Fri, 19 Aug 2011 16:43:43 +0000 (18:43 +0200)]
merge heads

13 years agomention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
Sandro Tosi [Fri, 19 Aug 2011 16:39:35 +0000 (18:39 +0200)]
mention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@

13 years agoBranch merge
Éric Araujo [Fri, 19 Aug 2011 12:24:38 +0000 (14:24 +0200)]
Branch merge

13 years agoFix typo in command name
Éric Araujo [Fri, 19 Aug 2011 07:30:26 +0000 (09:30 +0200)]
Fix typo in command name

13 years agoRemove obsolete term + indicate how to find the program (#1626300).
Éric Araujo [Fri, 19 Aug 2011 07:29:56 +0000 (09:29 +0200)]
Remove obsolete term + indicate how to find the program (#1626300).

Suggested by Terry J. Reedy.

13 years agoLink isinstance/issubclass to the ABC glossary entry (#12256)
Éric Araujo [Fri, 19 Aug 2011 07:15:47 +0000 (09:15 +0200)]
Link isinstance/issubclass to the ABC glossary entry (#12256)

13 years agoFix a typo and remove some unneeded markup
Éric Araujo [Fri, 19 Aug 2011 07:00:56 +0000 (09:00 +0200)]
Fix a typo and remove some unneeded markup

13 years agopatchcheck: don’t talk about the test suite when no code file were changed.
Éric Araujo [Fri, 19 Aug 2011 06:41:00 +0000 (08:41 +0200)]
patchcheck: don’t talk about the test suite when no code file were changed.

The line about the test suite will still get printed for changes in
Tools for example, which aren’t covered by the test suite, but it’s not
a big deal IMO.

13 years agoFix find command in makefile “funny” target
Éric Araujo [Fri, 19 Aug 2011 06:40:10 +0000 (08:40 +0200)]
Fix find command in makefile “funny” target

13 years agoAdd documentation for PEP 370 features in distutils (#10745).
Éric Araujo [Fri, 19 Aug 2011 06:34:52 +0000 (08:34 +0200)]
Add documentation for PEP 370 features in distutils (#10745).

Apart from adding a section to describe the user scheme, this changeset
also does some much needed cleanup:

- fixed inverted reST targets
- fixed some paths
- avoided duplicating the same options listing five or six times
- added missing entries for C headers locations
- added documentation for --install-lib
- fixed a few misuses of the option role (see #9312), but not all (not
  worth the time, but will do it in packaging docs)
- fixed some markup

The paths fixes were done with an eye on the source code in the install
command, so they really describe what’s actually done.  The situation on
Mac OS X is rather messy: the fix for #8084 touched site and sysconfig,
but distutils does not use these files anymore since the Great Revert.
I suspect we have a mismatched stdlib at the moment, and the fix is not
even clear (see discussion on #8084).

13 years agoImprove documentation for PEP 370 support in site module (#8617).
Éric Araujo [Fri, 19 Aug 2011 06:20:01 +0000 (08:20 +0200)]
Improve documentation for PEP 370 support in site module (#8617).

site.USER_BASE and site.USER_SITE are now fully documented.  PEP 370 is
outdated with respects to the Mac framework situation, but the code in
sysconfig and the example in the 3.2 What’s New document helped me find
the right values to document for Mac OS X.

The command-line interface of the site module is also described in the
module docs.

The purpose of the usercustomize module is explained in the site docs,
with a gentle introduction in the tutorial (right after the section that
talks about PYTHONSTARTUP; a comment mentions it should be moved from
the tutorial to another file, but that will be another bug).

Various markup and wording improvements were made along the way in the
site module docs.  Duplicate and incomplete declarations of environment
variables have also been removed (the original bug report was actually
about these entries :).  The site module docs are still a bit messy;
I’ll see about improving them for #11553.

All these sections are copiously interlinked and findable from the doc
indexes.

13 years agoIssue #12672: remove confusing part of sentence in documentation
Eli Bendersky [Fri, 19 Aug 2011 03:33:39 +0000 (06:33 +0300)]
Issue #12672: remove confusing part of sentence in documentation

13 years agoFix resource leaks in test_subprocess.
Nadeem Vawda [Fri, 19 Aug 2011 03:22:24 +0000 (05:22 +0200)]
Fix resource leaks in test_subprocess.

13 years agoGuard shutil._make_archive against a logger=None argument.
Éric Araujo [Fri, 19 Aug 2011 01:07:39 +0000 (03:07 +0200)]
Guard shutil._make_archive against a logger=None argument.

Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.

13 years agoAdd missing documentation for logger argument of shutil.make_archive
Éric Araujo [Fri, 19 Aug 2011 00:51:17 +0000 (02:51 +0200)]
Add missing documentation for logger argument of shutil.make_archive

13 years agoTurn last automatic footnote in this file into a manually-numbered one
Éric Araujo [Fri, 19 Aug 2011 00:28:40 +0000 (02:28 +0200)]
Turn last automatic footnote in this file into a manually-numbered one

13 years agoBranch merge
Éric Araujo [Fri, 19 Aug 2011 00:26:44 +0000 (02:26 +0200)]
Branch merge

13 years agoBackport source links from 3.x.
Éric Araujo [Fri, 19 Aug 2011 00:14:03 +0000 (02:14 +0200)]
Backport source links from 3.x.

Existing links have been updated to use the new reST role.  In some
files, I have also made cosmetic changes to the header.

13 years agoUse standard heading for ast module docs
Éric Araujo [Fri, 19 Aug 2011 00:01:14 +0000 (02:01 +0200)]
Use standard heading for ast module docs

13 years agoSynchronize argparse docs with 3.x versions
Éric Araujo [Fri, 19 Aug 2011 00:00:07 +0000 (02:00 +0200)]
Synchronize argparse docs with 3.x versions

13 years agoRemove unneeded reST target
Éric Araujo [Thu, 18 Aug 2011 23:47:48 +0000 (01:47 +0200)]
Remove unneeded reST target

13 years agoSynchronize glossary with py3k.
Éric Araujo [Thu, 18 Aug 2011 23:27:00 +0000 (01:27 +0200)]
Synchronize glossary with py3k.

This update includes new entries that apply to 2.7 too, mention of class
decorators, mention of nonlocal, notes about bytecode, markup fixes and
some rewrappings.  Future backports of changes should be slightly
easier.

13 years agoAdd Python porting howto from 3.x.
Éric Araujo [Thu, 18 Aug 2011 23:22:42 +0000 (01:22 +0200)]
Add Python porting howto from 3.x.

No change was necessary to make the file build, contrary to cporting.rst
that uses markup like :c:func: that needs to be changed to :cfunc: in
2.7.  Future backports should be straightforward.

13 years agoIssue #12650: fix failures on some buildbots, when a subprocess takes a long
Charles-François Natali [Thu, 18 Aug 2011 22:26:38 +0000 (00:26 +0200)]
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.

13 years agoBackport source role for linking to files in the cpython repo.
Éric Araujo [Thu, 18 Aug 2011 22:12:33 +0000 (00:12 +0200)]
Backport source role for linking to files in the cpython repo.

Georg added this role in our 3.2 doc tools and gave the greenlight for a
backport on python-dev.

This code is a simplified version of the 3.2 code; the version of Sphinx
used with Python 2.7 doesn’t have the function used to parse markup like
:role:`text to be displayed <text to be processed>` (I was persuaded it
was a standard reST construct, but it is actually a Sphinx innovation
that has to be supported explicitly in role code —I’ll be damned).  It
is thus not possible to write for example :source:`the NEWS file
<Misc/NEWS>`, but :source:`Misc/NEWS` will work.

13 years agoIssue #12650: only run the tests on Unix.
Charles-François Natali [Thu, 18 Aug 2011 15:56:02 +0000 (17:56 +0200)]
Issue #12650: only run the tests on Unix.

13 years agoIssue #12650: Fix a race condition where a subprocess.Popen could leak
Charles-François Natali [Thu, 18 Aug 2011 15:18:28 +0000 (17:18 +0200)]
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.

13 years agogrammatical fixes; from Darren Yin on docs@
Sandro Tosi [Thu, 18 Aug 2011 13:36:15 +0000 (15:36 +0200)]
grammatical fixes; from Darren Yin on docs@

13 years agofix possible refleaks
Benjamin Peterson [Wed, 17 Aug 2011 03:26:48 +0000 (22:26 -0500)]
fix possible refleaks

13 years ago#12761: fix wording of zlib license section
Sandro Tosi [Tue, 16 Aug 2011 18:02:15 +0000 (20:02 +0200)]
#12761: fix wording of zlib license section

13 years agoNEWS entry.
Barry Warsaw [Mon, 15 Aug 2011 23:50:35 +0000 (19:50 -0400)]
NEWS entry.

13 years agoThe simplest possible fix for the regression in bug 12752 by encoding unicodes
Barry Warsaw [Mon, 15 Aug 2011 23:17:12 +0000 (19:17 -0400)]
The simplest possible fix for the regression in bug 12752 by encoding unicodes
to 8-bit strings.

13 years ago#12204: document that str.upper().isupper() might be False and add a note about cased...
Ezio Melotti [Mon, 15 Aug 2011 11:24:15 +0000 (14:24 +0300)]
#12204: document that str.upper().isupper() might be False and add a note about cased characters.

13 years ago#12266: move the tests in test_unicode.
Ezio Melotti [Mon, 15 Aug 2011 07:04:28 +0000 (10:04 +0300)]
#12266: move the tests in test_unicode.

13 years ago#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased...
Ezio Melotti [Mon, 15 Aug 2011 06:22:24 +0000 (09:22 +0300)]
#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.

13 years ago#12725: fix working. Patch by Ben Hayden.
Ezio Melotti [Sun, 14 Aug 2011 05:27:36 +0000 (08:27 +0300)]
#12725: fix working. Patch by Ben Hayden.

13 years agoAvoid title case in flowing text (backport from 3.2)
Éric Araujo [Sat, 13 Aug 2011 00:47:38 +0000 (02:47 +0200)]
Avoid title case in flowing text (backport from 3.2)

13 years agolet PySequence_Check me a link; thanks to tomo cocoa from docs@
Sandro Tosi [Fri, 12 Aug 2011 22:39:29 +0000 (00:39 +0200)]
let PySequence_Check me a link; thanks to tomo cocoa from docs@

13 years agoit's 'rather than'; reported by James Bateman on docs@
Sandro Tosi [Fri, 12 Aug 2011 17:31:15 +0000 (19:31 +0200)]
it's 'rather than'; reported by James Bateman on docs@

13 years agoEnglish fixup, from Mike MacCana on docs@
Sandro Tosi [Fri, 12 Aug 2011 17:11:24 +0000 (19:11 +0200)]
English fixup, from Mike MacCana on docs@

13 years agoIssue #12718: Add documentation on using custom importers.
Vinay Sajip [Thu, 11 Aug 2011 12:39:52 +0000 (13:39 +0100)]
Issue #12718: Add documentation on using custom importers.

13 years agoRemove the un-exercised in-module test code.
Senthil Kumaran [Wed, 10 Aug 2011 13:57:22 +0000 (21:57 +0800)]
Remove the un-exercised in-module test code.

13 years agoFix closes Issue12722 - link heapq source in the text format in the documentation.
Senthil Kumaran [Wed, 10 Aug 2011 13:54:56 +0000 (21:54 +0800)]
Fix closes Issue12722  - link heapq source in the text format in the documentation.

13 years agoIssue 12717: Fix-up an earlier backport in ConfigParser.
Raymond Hettinger [Tue, 9 Aug 2011 19:07:15 +0000 (12:07 -0700)]
Issue 12717: Fix-up an earlier backport in ConfigParser.

13 years agoRepair markup.
Georg Brandl [Tue, 9 Aug 2011 17:47:04 +0000 (19:47 +0200)]
Repair markup.

13 years agoConfirm that the prime example is actually correct. We get so many complaints about...
Georg Brandl [Mon, 8 Aug 2011 19:45:13 +0000 (21:45 +0200)]
Confirm that the prime example is actually correct.  We get so many complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.

13 years ago#12709: add error_callback argument to map_async documentation
Sandro Tosi [Mon, 8 Aug 2011 14:37:44 +0000 (16:37 +0200)]
#12709: add error_callback argument to map_async documentation

13 years ago#10741: add documentation for PyGILState_GetThisThreadState()
Sandro Tosi [Sun, 7 Aug 2011 22:15:57 +0000 (00:15 +0200)]
#10741: add documentation for PyGILState_GetThisThreadState()

13 years ago#12677: correct turtle orientation in doc
Sandro Tosi [Sun, 7 Aug 2011 15:09:15 +0000 (17:09 +0200)]
#12677: correct turtle orientation in doc

13 years agowhitespace fix.
Senthil Kumaran [Sun, 7 Aug 2011 02:03:58 +0000 (10:03 +0800)]
whitespace fix.

13 years agoRemove the old dead test program within the module in 2.7.
Senthil Kumaran [Sun, 7 Aug 2011 02:02:49 +0000 (10:02 +0800)]
Remove the old dead test program within the module in 2.7.

13 years agoFix grammar
Eli Bendersky [Sat, 6 Aug 2011 06:29:12 +0000 (09:29 +0300)]
Fix grammar

13 years agoFix closes Issue12697 - Update the usage syntax of timeit module in the docs.
Senthil Kumaran [Sat, 6 Aug 2011 05:34:30 +0000 (13:34 +0800)]
Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.

13 years agos/a/an - grammar?
Senthil Kumaran [Sat, 6 Aug 2011 04:56:08 +0000 (12:56 +0800)]
s/a/an - grammar?

13 years agoFix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.
Senthil Kumaran [Sat, 6 Aug 2011 04:52:56 +0000 (12:52 +0800)]
Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.

13 years agoFix closes issue12698 - make the no_proxy environment variable handling a bit lenient...
Senthil Kumaran [Sat, 6 Aug 2011 04:24:33 +0000 (12:24 +0800)]
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)

13 years agodosmodule is, thankfully, no more
Benjamin Peterson [Thu, 4 Aug 2011 16:07:42 +0000 (11:07 -0500)]
dosmodule is, thankfully, no more

13 years agoadd svn+ssh testcase for urljoin.
Senthil Kumaran [Wed, 3 Aug 2011 14:06:05 +0000 (22:06 +0800)]
add svn+ssh testcase for urljoin.

13 years agoinclude svn+ssh as well.
Senthil Kumaran [Wed, 3 Aug 2011 10:40:18 +0000 (18:40 +0800)]
include svn+ssh as well.

13 years agoFix closes issue12683 - urljoin to work with relative join of svn scheme.
Senthil Kumaran [Wed, 3 Aug 2011 10:31:59 +0000 (18:31 +0800)]
Fix closes issue12683 - urljoin to work with relative join of svn scheme.

13 years agoFix closes issue12663 - Correcting the ArgumentParser.error description. Patch by...
Senthil Kumaran [Tue, 2 Aug 2011 23:43:52 +0000 (07:43 +0800)]
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.

13 years agoBranch merge
Éric Araujo [Tue, 2 Aug 2011 18:01:54 +0000 (20:01 +0200)]
Branch merge

13 years ago#12670: Fix struct code after forward declaration on ctypes doc
Sandro Tosi [Tue, 2 Aug 2011 14:16:11 +0000 (16:16 +0200)]
#12670: Fix struct code after forward declaration on ctypes doc

13 years agoFix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch...
Senthil Kumaran [Tue, 2 Aug 2011 10:50:44 +0000 (18:50 +0800)]
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen.

13 years agoFix incorrect mtime comparison in distutils (#11933).
Éric Araujo [Tue, 2 Aug 2011 01:16:12 +0000 (03:16 +0200)]
Fix incorrect mtime comparison in distutils (#11933).

This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes.  As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.

This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.

13 years agoBackport 68b5f87566fb
Stefan Krah [Mon, 1 Aug 2011 23:17:48 +0000 (01:17 +0200)]
Backport 68b5f87566fb

13 years agoUse attribute access instead of index access for namedtuple.
Georg Brandl [Mon, 1 Aug 2011 20:58:53 +0000 (22:58 +0200)]
Use attribute access instead of index access for namedtuple.

13 years agoBranch merge
Éric Araujo [Mon, 1 Aug 2011 12:48:19 +0000 (14:48 +0200)]
Branch merge

13 years agoCloses #12667: Corrected documentation for SMTPHandler secure argument.
Vinay Sajip [Mon, 1 Aug 2011 10:28:02 +0000 (11:28 +0100)]
Closes #12667: Corrected documentation for SMTPHandler secure argument.

13 years agoFix typo reported by Sandro Tosi.
Ezio Melotti [Sun, 31 Jul 2011 19:48:45 +0000 (22:48 +0300)]
Fix typo reported by Sandro Tosi.

13 years agoStop trying to write into the stdlib during lib2to3 tests (#12331).
Éric Araujo [Sun, 31 Jul 2011 15:59:28 +0000 (17:59 +0200)]
Stop trying to write into the stdlib during lib2to3 tests (#12331).

This prevents tests from failing when run from a Python installed in a
read-only directory.

13 years agorunning tests enables us to discover that they actually work
Benjamin Peterson [Sun, 31 Jul 2011 04:39:39 +0000 (23:39 -0500)]
running tests enables us to discover that they actually work

13 years agomerge heads.
Senthil Kumaran [Sun, 31 Jul 2011 03:50:15 +0000 (11:50 +0800)]
merge heads.

13 years agousing test_support.transient_internet helper method in the urllib2net test.
Senthil Kumaran [Sun, 31 Jul 2011 03:48:54 +0000 (11:48 +0800)]
using test_support.transient_internet helper method in the urllib2net test.

13 years agomerge heads
Benjamin Peterson [Sun, 31 Jul 2011 03:08:18 +0000 (22:08 -0500)]
merge heads

13 years agobe precise
Benjamin Peterson [Sun, 31 Jul 2011 03:08:09 +0000 (22:08 -0500)]
be precise

13 years agoFix regression with distutils MANIFEST handing (#11104, #8688).
Éric Araujo [Sun, 31 Jul 2011 00:04:00 +0000 (02:04 +0200)]
Fix regression with distutils MANIFEST handing (#11104, #8688).

The changed behavior of sdist in 2.7 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).

The fixes that were committed for #8688 (d29399100973 by Tarek and
f7639dcdffc3 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them.  This changeset should fix everything; the tests have been
expanded and I successfully tested with Mercurial, which suffered from
this regression.

I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using.  I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.

Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.