Commit graph

48783 commits

Author SHA1 Message Date
Antoine Pitrou
543b7f3ee9 Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
2011-02-22 21:42:56 +00:00
Brett Cannon
d8878ccf13 Blocked revisions 88507 via svnmerge
........
  r88507 | brett.cannon | 2011-02-22 12:17:14 -0800 (Tue, 22 Feb 2011) | 1 line

  Fix test.test_crypt.test_methods() to pass on OS X.
........
2011-02-22 20:18:11 +00:00
Brett Cannon
c564a96583 Blocked revisions 88506 via svnmerge
........
  r88506 | brett.cannon | 2011-02-22 12:15:44 -0800 (Tue, 22 Feb 2011) | 2 lines

  Issue #8914: fix various warnings from the Clang static analyzer v254.
........
2011-02-22 20:17:24 +00:00
Brett Cannon
292ee5dc43 Fix test.test_crypt.test_methods() to pass on OS X. 2011-02-22 20:17:14 +00:00
Brett Cannon
b94767ff44 Issue #8914: fix various warnings from the Clang static analyzer v254. 2011-02-22 20:15:44 +00:00
Giampaolo Rodolà
79da6b7075 In FTP.close() method, make sure to also close the socket object, not only the file. 2011-02-22 19:24:33 +00:00
Giampaolo Rodolà
d686848807 In FTP.close() method, make sure to also close the socket object, not only the file. 2011-02-22 19:24:33 +00:00
Brett Cannon
4f85c3fa4c Blocked revisions 88503 via svnmerge
........
  r88503 | brett.cannon | 2011-02-22 11:12:43 -0800 (Tue, 22 Feb 2011) | 1 line

  Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.
........
2011-02-22 19:13:46 +00:00
Brett Cannon
4cfa24757b Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3. 2011-02-22 19:12:43 +00:00
Terry Reedy
ba9ad6021a Fix typo reported by 'Paddy' on python-list. 2011-02-22 16:24:07 +00:00
Giampaolo Rodolà
bd258bd4c6 smtlib.py PEP8 normalization via pep8.py script. 2011-02-22 15:56:20 +00:00
Sean Reifscheider
e2dfefbe85 Issue #10924: Adding salt and Modular Crypt Format to crypt library. 2011-02-22 10:55:44 +00:00
Brett Cannon
45b96d373e Merged revisions 88498 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88498 | brett.cannon | 2011-02-21 19:25:12 -0800 (Mon, 21 Feb 2011) | 8 lines

  Issue #11074: Make 'tokenize' so it can be reloaded.

  The module stored away the 'open' object as found in the global namespace
  (which fell through to the built-in namespace) since it defined its own 'open'.
  Problem is that if you reloaded the module it then grabbed the 'open' defined
  in the previous load, leading to code that infinite recursed. Switched to
  simply call builtins.open directly.
........
2011-02-22 03:35:18 +00:00
Brett Cannon
f3042782af Issue #11074: Make 'tokenize' so it can be reloaded.
The module stored away the 'open' object as found in the global namespace
(which fell through to the built-in namespace) since it defined its own 'open'.
Problem is that if you reloaded the module it then grabbed the 'open' defined
in the previous load, leading to code that infinite recursed. Switched to
simply call builtins.open directly.
2011-02-22 03:25:12 +00:00
Brett Cannon
64c9af1508 Merged revisions 88496 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88496 | brett.cannon | 2011-02-21 19:14:12 -0800 (Mon, 21 Feb 2011) | 4 lines

  Issue #10512: close the log file in cgi when running tests.

  Thanks to Nadeem Vawda for the find and an initial fix.
........
2011-02-22 03:16:07 +00:00
Brett Cannon
eeb114b028 Issue #10512: close the log file in cgi when running tests.
Thanks to Nadeem Vawda for the find and an initial fix.
2011-02-22 03:14:12 +00:00
Brett Cannon
d8b64788ce Blocked revisions 88494 via svnmerge
........
  r88494 | brett.cannon | 2011-02-21 19:04:06 -0800 (Mon, 21 Feb 2011) | 10 lines

  Issue #10992: make tests pass when run under coverage.

  Various tests fail when run under coverage. A primary culprit is refcount tests
  which fail as the counts are thrown off by the coverage code. A new decorator
  -- test.support.refcount_test -- is used to decorate tests which test refcounts
  and to skip them when running under coverage. Other tests simply fail because
  of changes in the system (e.g., __local__ suddenly appearing).

  Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
........
2011-02-22 03:07:39 +00:00
Brett Cannon
7a54073a56 Issue #10992: make tests pass when run under coverage.
Various tests fail when run under coverage. A primary culprit is refcount tests
which fail as the counts are thrown off by the coverage code. A new decorator
-- test.support.refcount_test -- is used to decorate tests which test refcounts
and to skip them when running under coverage. Other tests simply fail because
of changes in the system (e.g., __local__ suddenly appearing).

Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
2011-02-22 03:04:06 +00:00
Brett Cannon
eb70e47d85 Ignore __pycache__ in Lib/collections. 2011-02-22 02:42:41 +00:00
Raymond Hettinger
c9423109f5 Factor-out common code for helper classes. 2011-02-22 01:55:36 +00:00
Raymond Hettinger
16fe75e4e0 Have the test filename match the module filename. 2011-02-22 01:48:33 +00:00
Raymond Hettinger
158c9c26fc Issue #11085: Moved collections abstract base classes into a separate module
called collections.abc, following the pattern used by importlib.abc.  For
backwards compatibility, the names continue to also be imported into the
collections module.
2011-02-22 00:41:50 +00:00
Antoine Pitrou
97696cbf36 Merged revisions 88486 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines

  Issue #4681: Allow mmap() to work on file sizes and offsets larger than
  4GB, even on 32-bit builds.  Initial patch by Ross Lagerwall, adapted for
  32-bit Windows.
........
2011-02-21 23:46:27 +00:00
Antoine Pitrou
ecc26923cd Issue #4681: Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds.  Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
2011-02-21 23:41:12 +00:00
Antoine Pitrou
a47c25d74f Merged revisions 88484 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88484 | antoine.pitrou | 2011-02-21 22:55:48 +0100 (lun., 21 févr. 2011) | 4 lines

  Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due
  to open door files.
........
2011-02-21 21:58:42 +00:00
Antoine Pitrou
ce58dc7b16 Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due
to open door files.
2011-02-21 21:55:48 +00:00
Victor Stinner
5ed8b2c737 Fix PyUnicode_FromFormatV("%c") for non-BMP char
Issue #10830: Fix PyUnicode_FromFormatV("%c") for non-BMP characters on
narrow build.
2011-02-21 21:13:44 +00:00
Victor Stinner
ed4c71112a Remove filename variable from ceval.c
Issue #11168: Remove filename debug variable from PyEval_EvalFrameEx().
It encoded the Unicode filename to UTF-8, but the encoding fails on
undecodable filename (on surrogate characters) which raises an unexpected
UnicodeEncodeError on recursion limit.
2011-02-21 21:05:50 +00:00
Victor Stinner
441cc01e0f compileall uses repr() to format filenames/paths
Issue #11169: compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.
2011-02-21 20:58:02 +00:00
Ned Deily
a16b05b317 Merged revisions 88475 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88475 | ned.deily | 2011-02-21 12:44:27 -0800 (Mon, 21 Feb 2011) | 3 lines

  Issue #11268: Prevent Mac OS X Installer failure if Documentation
  package had previously been installed.
........
2011-02-21 20:52:58 +00:00
Victor Stinner
fd34b3788f Remove bootstrap code of PyUnicode_AsEncodedString()
Issue #11187: Remove bootstrap code (use ASCII) of
PyUnicode_AsEncodedString(), it was replaced by a better fallback (use
the locale encoding) in PyUnicode_EncodeFSDefault().

Prepare also empty sections in NEWS.
2011-02-21 20:51:28 +00:00
Ned Deily
5eaee2e23b Issue #11268: Prevent Mac OS X Installer failure if Documentation
package had previously been installed.
2011-02-21 20:44:27 +00:00
Raymond Hettinger
d8de5415c8 Issue 11263: Fix link to source code. 2011-02-21 19:58:37 +00:00
Raymond Hettinger
540b636077 Issue 11263: Fix link to source code. 2011-02-21 19:56:24 +00:00
Brett Cannon
461be07745 Blocked revisions 88467 via svnmerge
........
  r88467 | brett.cannon | 2011-02-21 11:29:56 -0800 (Mon, 21 Feb 2011) | 11 lines

  Issue #10990: Prevent tests from clobbering a set trace function.

  Many tests simply didn't care if they unset a pre-existing trace function. This
  made test coverage impossible. This patch fixes various tests to put back any
  pre-existing trace function. It also introduces test.support.no_tracing as a
  decorator which will temporarily unset the trace function for tests which
  simply fail otherwise.

  Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
  trace function unsets.
........
2011-02-21 19:50:24 +00:00
Brett Cannon
b5e69da9f1 Merged revisions 88465 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88465 | brett.cannon | 2011-02-21 11:24:10 -0800 (Mon, 21 Feb 2011) | 2 lines

  Ignore Vim .swp files.
........
2011-02-21 19:49:20 +00:00
Raymond Hettinger
ddb52404ee Issue #11089: Fix performance issue limiting the use of ConfigParser()
with large config files.
2011-02-21 19:42:11 +00:00
Raymond Hettinger
e66036063b Issue #11089: Fix performance issue limiting the use of ConfigParser()
with large config files.
2011-02-21 19:38:53 +00:00
Antoine Pitrou
bf709fe08c Merged revisions 88464,88466 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines

  Fix issues on 32-bit systems introduced by r88460
........
  r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines

  Fix compile error under MSVC introduced by r88460.
........
2011-02-21 19:31:38 +00:00
Brett Cannon
31f5929c1e Issue #10990: Prevent tests from clobbering a set trace function.
Many tests simply didn't care if they unset a pre-existing trace function. This
made test coverage impossible. This patch fixes various tests to put back any
pre-existing trace function. It also introduces test.support.no_tracing as a
decorator which will temporarily unset the trace function for tests which
simply fail otherwise.

Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
trace function unsets.
2011-02-21 19:29:56 +00:00
Antoine Pitrou
4709ec0686 Fix compile error under MSVC introduced by r88460. 2011-02-21 19:28:40 +00:00
Brett Cannon
c97c73761b Ignore Vim .swp files. 2011-02-21 19:24:10 +00:00
Antoine Pitrou
3d32664271 Fix issues on 32-bit systems introduced by r88460 2011-02-21 19:05:08 +00:00
Georg Brandl
97b67216d5 3.2 is stable now. 2011-02-21 18:37:01 +00:00
Georg Brandl
0accdfa00b Update in-development version. 2011-02-21 18:13:44 +00:00
Antoine Pitrou
f3d22755f9 Merged revisions 88460 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines

  Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers
  larger than 4GB.  Patch by Nadeem Vawda.
........
2011-02-21 18:09:00 +00:00
Antoine Pitrou
54f0f84e9f Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers
larger than 4GB.  Patch by Nadeem Vawda.
2011-02-21 18:03:13 +00:00
Raymond Hettinger
2cef949c9d Issue 10160: Both single-arg and multi-arg calls have been sped-up. 2011-02-21 17:54:36 +00:00
Raymond Hettinger
f5692b0476 Issue 10160: Both single-arg and multi-arg calls have been sped-up. 2011-02-21 17:53:16 +00:00
Martin v. Löwis
7be5b78b4f Merged revisions 88456 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88456 | martin.v.loewis | 2011-02-21 17:24:00 +0100 (Mo, 21 Feb 2011) | 2 lines

  - Check for NULL result in PyType_FromSpec.
........
2011-02-21 16:26:47 +00:00