Commit Graph

11694 Commits

Author SHA1 Message Date
Georg Brandl fea72f7c10 Patch #1739696: use code.co_code only if really necessary
(backport from rev. 56296)
2007-07-12 08:11:32 +00:00
Georg Brandl 40df67f704 Patch #1752270, #1750931: complain if urllib2 add_handler called
without handler.
 (backport from rev. 56293)
2007-07-12 08:05:48 +00:00
Ronald Oussoren 47f29a67e5 Patch 1693258: Fix for duplicate "preferences" menu-OS X
Backport of 56204.
2007-07-09 06:03:47 +00:00
Ronald Oussoren 43f1f68b7c Fixes IDLE crash on OSX: some versions of Tcl/Tk on OSX don't have a
console object, avoid crashing in that case.
2007-07-09 05:46:04 +00:00
Georg Brandl 511087b035 Fix a few webbrowser.py problems.
(backport from rev. 56137)
2007-07-01 08:11:40 +00:00
Georg Brandl 03210e5741 Bug #1737864: allow empty message in logging format routines.
(backport from rev. 56038)
2007-06-19 12:36:06 +00:00
Neal Norwitz e99cb23e71 Backport 55887:
Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.
2007-06-11 07:34:07 +00:00
Neal Norwitz 8355dd5806 Backport 55874:
Fix a bug when there was a newline in the string expandtabs was called on.
This also catches another condition that can overflow.
2007-06-11 04:32:41 +00:00
Neal Norwitz 11c5275c61 Backport 55873:
Prevent these tests from running on Win64 since they don't apply there either
2007-06-11 04:31:25 +00:00
Martin v. Löwis 2276885acd Patch #1733960: Allow T_LONGLONG to accept ints. 2007-06-09 08:01:33 +00:00
Neal Norwitz 66e64e2b6a Prevent expandtabs() on string and unicode objects from causing a segfault when
a large width is passed on 32-bit platforms.  Found by Google.

It would be good for people to review this especially carefully and verify
I don't have an off by one error and there is no other way to cause overflow.
2007-06-09 04:06:30 +00:00
Thomas Heller 11c58c4c8d Merged revisions 55129-55131 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes

........
  r55129 | thomas.heller | 2007-05-04 21:54:22 +0200 (Fr, 04 Mai 2007) | 3 lines

  Do not truncate 64-bit pointers to 32-bit integers.

  Fixes SF #1703286, will backport to release25-maint.
........
  r55131 | thomas.heller | 2007-05-04 21:56:32 +0200 (Fr, 04 Mai 2007) | 1 line

  Oops, these tests do not run on Windows CE.
........
2007-06-08 19:39:31 +00:00
Georg Brandl d2acc2e9c5 Patch #1667860: Fix UnboundLocalError in urllib2.
(backport from rev. 55805)
2007-06-07 13:34:41 +00:00
Georg Brandl 73c958aced Disallow function calls like foo(None=1).
Backport from py3k rev. 55708 by Guido.
 (backport from rev. 55802)
2007-06-07 13:23:28 +00:00
Hye-Shik Chang fc41f199ba Fix for Windows: close a temporary file before trying to delete it. 2007-06-05 19:28:15 +00:00
Hye-Shik Chang 60111e09a9 (Backport from r55770)
Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when it
reads a file that ends with incomplete sequence and sizehint argument
for .read() is specified.
2007-06-05 19:14:33 +00:00
Brett Cannon c9490e2fe9 Backport of r55752: make time.strptime() behave better when whitespace is in
the format arguments.
2007-06-04 00:14:06 +00:00
Neal Norwitz 2413e038c4 Backport 55731:
SF 1668596/1720897: distutils now copies data files
even if package_dir is empty.
2007-06-02 18:53:07 +00:00
Thomas Heller b40092bf98 Merged revisions 55677 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes

........
  r55677 | thomas.heller | 2007-05-30 09:01:25 +0200 (Mi, 30 Mai 2007) | 2 lines

  Correct the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
  Closes bug #1726026.
........
2007-05-30 07:07:34 +00:00
Vinay Sajip 8c6ec81ac8 Updated docstring for SysLogHandler (#1720726). 2007-05-25 07:27:30 +00:00
Neal Norwitz cf0fab2686 Verify neither dumps or loads overflow the stack and segfault. 2007-05-18 05:45:33 +00:00
Neal Norwitz dc78cc6f7c Fix bug in marshal where bad data would cause a segfault due to
lack of an infinite recursion check.

Contributed by Damien Miller at Google.
2007-05-16 20:09:36 +00:00
Georg Brandl 4c87581c32 HTML-escape the plain traceback in cgitb's HTML output, to prevent
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.
 (backport from rev. 55348)
2007-05-15 20:19:39 +00:00
Neal Norwitz 914c98bfe3 Fix typo in docstring (the module is popen2, not 3). 2007-05-11 06:23:43 +00:00
Kristján Valur Jónsson a01d6609b9 Merge change 54983 from the trunk: Add the locale "English" to test_locale.py for a windows run, since "En" isn't legal for the Visual C 8 runtime. This update restores full testsuite compliance to VisualStudio 2005 builds, apart from unavailible external modules. 2007-05-07 19:31:41 +00:00
Kristján Valur Jónsson 7bca027f64 Merging change 55102 from the trunk:
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64.  Now the testsuite is well behaved on that platform.
2007-05-07 13:33:39 +00:00
Georg Brandl 9aa62ff4a1 Patch #1710352: add missing public functions to locale.__all__.
(backport from rev. 55038)
2007-05-01 06:08:20 +00:00
Brett Cannon daa2e58104 Backport fix for r54646-7: properly clear locale cache in time.strptime when
the locale changes between calls.
2007-04-27 23:17:43 +00:00
Barry Warsaw ca3b7b5ea1 bump email package version to 4.0.2 2007-04-25 19:26:37 +00:00
Neal Norwitz 44dab0ab2f Whitespace normalization 2007-04-25 06:42:41 +00:00
Georg Brandl f784d91215 Bug #1706381: Specifying the SWIG option "-c++" in the setup.py file
(as opposed to the command line) will now write file names ending in
".cpp" too.
 (backport from rev. 54941)
2007-04-24 15:27:25 +00:00
Neal Norwitz 112717dd0b Fix SF #1703110, Incorrect example for add_password() (use uri, not host) 2007-04-24 04:54:24 +00:00
Collin Winter 6def78ae85 Convert PyUnit -> unittest. Backported from r54929. 2007-04-24 03:52:08 +00:00
Barry Warsaw 2f131d81e2 Recommit r54805:
Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.
2007-04-23 01:58:33 +00:00
Georg Brandl 15136b3669 Bug #1704790: bind name "sys" locally in __del__ method so that it is
not cleared before __del__ is run.
 (backport from rev. 54918)
2007-04-21 20:35:49 +00:00
Lars Gustäbel 8ff1f6a69e Bug #1704156: Support for unicode strings as input filenames is
neither documented nor intended but works in Python 2.4 under certain
conditions. This stopped working in 2.5 because struct.pack is used.
This small patch restores the old behaviour. A more solid solution is
planned for 2.6.
2007-04-21 12:20:09 +00:00
Walter Dörwald 93a3603c67 Backport r54786:
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.
2007-04-21 10:31:43 +00:00
Georg Brandl 104377b2de Backport r54762: exceptions are no longer old-style instances. 2007-04-21 07:28:26 +00:00
Georg Brandl 6cf5abfd66 Backport r54787 - better error messages in rexec and bastion 2007-04-21 07:23:36 +00:00
Lars Gustäbel 9319e43c67 Patch #1695229: Fix a regression with tarfile.open() and a missing name
argument.
2007-04-20 20:10:59 +00:00
Lars Gustäbel d220144a84 Fix directory names to have only one trailing slash.
A regression from rev. 52525.
2007-04-20 14:49:02 +00:00
Anthony Baxter ef57abdb60 2.5.1 final 2007-04-18 03:35:45 +00:00
Neal Norwitz e6e383f498 Revert SF #1615701 (rev 53655): dict.update() does *not* call __getitem__() or
keys() if subclassed.  This is to remain consistent with 2.5.

See discussion here:
  http://mail.python.org/pipermail/python-dev/2007-April/072565.html
2007-04-16 06:59:13 +00:00
Neal Norwitz 8d61db5a00 Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:20:14 +00:00
Barry Warsaw 9bd522d7d1 Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.
2007-04-13 16:12:02 +00:00
Anthony Baxter 9515c96cb0 preparing for 2.5.1c1 2007-04-05 04:52:06 +00:00
Raymond Hettinger 3608f0570e Bug #1563759: struct.unpack doens't support buffer protocol objects 2007-04-04 20:32:03 +00:00
Martin v. Löwis 8863544522 Bug #1686475: Support stat'ing open files on Windows again. 2007-04-04 18:30:56 +00:00
Raymond Hettinger 6a390b34b7 SF 1602378 Clarify docstrings for bisect 2007-04-03 00:01:09 +00:00
Raymond Hettinger d6030acd7f Array module's buffer interface can now handle empty arrays. 2007-04-02 22:39:08 +00:00