Commit Graph

36673 Commits

Author SHA1 Message Date
Gregory P. Smith 2e49f781cb * fix failing test_recno.py - backport from trunk.
* bump _bsddb patch version number.
2007-11-07 07:25:20 +00:00
Guido van Rossum e6a6f39cc7 Backport r58892.
Add missing "return NULL" in overflow check in PyString_Repr().
2007-11-07 01:19:49 +00:00
Gregory P. Smith a1e5387ec5 Backport r58868:
Fixes Issue 1385: The hmac module now computes the correct hmac when using
  hashes with a block size other than 64 bytes (such as sha384 and sha512).
2007-11-06 00:32:04 +00:00
Skip Montanaro ca74140051 Note change to get_dialect semantics in 2.5. 2007-11-04 15:57:43 +00:00
Georg Brandl 1dcb9c93fd Backport r58709 from trunk:
Backport fixes for the code that decodes octal escapes (and for PyString
also hex escapes) -- this was reaching beyond the end of the input string
buffer, even though it is not supposed to be \0-terminated.
This has no visible effect but is clearly the correct thing to do.
(In 3.0 it had a visible effect after removing ob_sstate from PyString.)
Also fixes #1098.
2007-11-02 22:46:38 +00:00
Gregory P. Smith 2c3e0d94b2 Backport r58757, r58758, r58759.
Undoes incorrect dbtables fix and errant strdup introduced as
described below:

r58757 | gregory.p.smith | 2007-11-01 14:08:14 -0700 (Thu, 01 Nov 2007) | 4 lines

Fix bug introduced in revision 58385.  Database keys could no longer
have NULL bytes in them.  Replace the errant strdup with a
malloc+memcpy.  Adds a unit test for the correct behavior.

r58758 | gregory.p.smith | 2007-11-01 14:15:36 -0700 (Thu, 01 Nov 2007) | 3 lines

Undo revision 58533 58534 fixes.  Those were a workaround for
a problem introduced by 58385.

r58759 | gregory.p.smith | 2007-11-01 14:17:47 -0700 (Thu, 01 Nov 2007) | 2 lines

false "fix" undone as correct problem was found and fixed.
2007-11-01 21:22:40 +00:00
Georg Brandl bf75c5133d #1364: os.lstat is available on Windows too, as an alias to os.stat. 2007-11-01 17:19:36 +00:00
Raymond Hettinger cf81e06959 Sets are marshalable. 2007-10-31 22:16:25 +00:00
Raymond Hettinger 9afdaffa33 Clarify the reasons why pickle is almost always better than marshal 2007-10-31 22:02:21 +00:00
Matthias Klose 9b12e0019e - Build using system ffi library on arm*-linux*, pass --with-system-ffi to CONFIG_ARGS 2007-10-25 06:38:01 +00:00
Matthias Klose e467dbc3d0 - Build using system ffi library on arm*-linux*. 2007-10-24 20:34:07 +00:00
Vinay Sajip 5d512fa2e4 Bug #1321: Fixed logic error in TimedRotatingFileHandler.__init__() 2007-10-24 10:49:50 +00:00
Neal Norwitz 4b2a6dbf60 Backport 58618:
Issue 1307 by Derek Shockey, fix the same bug for RCPT.
2007-10-24 03:52:50 +00:00
Neal Norwitz 4aa5f4bc5a Bug #1313, fix typo (wrong variable name) in example. 2007-10-23 05:42:38 +00:00
Neal Norwitz 1046af6f59 Backport 58594:
Issue #1307, patch by Derek Shockey.
When "MAIL" is received without args, an exception happens instead of
sending a 501 syntax error response.
2007-10-23 05:35:11 +00:00
Georg Brandl 35a9f908c8 Backport r58545. 2007-10-19 17:39:18 +00:00
Georg Brandl 051aa77305 Backport r58542. 2007-10-19 12:34:20 +00:00
Gregory P. Smith dd4b025ad8 Backport 58539: squelch the warning that this test is intended to raise. 2007-10-19 07:35:22 +00:00
Gregory P. Smith 0dcc3cc949 Backport 58532, 58533, 58534:
- Fix bsddb.dbtables: Don't randomly corrupt newly inserted rows by
   picking a rowid string with null bytes in it.  Such rows could not
   later be deleted, modified or individually selected.  Existing
   bsdTableDb databases created with such rows are out of luck.
 - Use mkdtemp for the test_dbtables test database environment and
   clean it up afterwards using shutil.rmtree.
2007-10-18 17:15:20 +00:00
Gregory P. Smith 574e1ba814 Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append 2007-10-13 23:05:54 +00:00
Georg Brandl 57da2de9b1 Fix email example. 2007-10-13 13:19:45 +00:00
Gregory P. Smith 137bdfa27a Merge trunk 58434:
Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.append
was useless due to inverted logic.  Also adds a test case for RECNO dbs
to test_dbshelve.
2007-10-12 18:49:36 +00:00
Brett Cannon 8012e9c2f7 Silence a compiler warning about a function definition not being a prototype. 2007-10-12 17:41:08 +00:00
Martin v. Löwis d79fa9e504 Bug #1216: Restore support for Visual Studio 2002. 2007-10-12 08:58:48 +00:00
Thomas Heller d6f638188f Fix ctypes on 32-bit systems when Python is configured --with-system-ffi.
See also https://bugs.launchpad.net/bugs/72505.
2007-10-12 06:53:32 +00:00
Neal Norwitz 163048ed12 Backport 58424:
Fix Coverity 185-186:  If the passed in FILE is NULL, uninitialized memory
would be accessed.
2007-10-12 03:59:09 +00:00
Gregory P. Smith 7d9c00ec4f Backport 58385 from trunk: fix a double free bug in the _bsddb module
on DBCursor.get (and a friends) when passing in a string key.
2007-10-09 07:25:24 +00:00
Gregory P. Smith 381e1a46cd Backport rev 58343: fix DBSequence.get_key() to not crash/fail/etc. 2007-10-06 16:05:18 +00:00
Gregory P. Smith 76ee2272ff Backport 58348: use a reliable host in the test. 2007-10-06 15:55:25 +00:00
Gregory P. Smith 4a08ec3db3 Backport 58344: allow BerkeleyDB 4.6.x >= 4.6.21 for the bsddb module 2007-10-06 08:11:29 +00:00
Neal Norwitz c9f22b954f Backport 58332: Fix Coverity #159.
This code was broken if save() returned a negative number since i contained
a boolean value and then we compared i < 0 which should never be true.
2007-10-05 05:05:24 +00:00
Neal Norwitz 14f848bb22 Backport 58330:
Fix Coverity #158: Check the correct variable.
2007-10-05 03:45:42 +00:00
Fred Drake 0ac4b27be8 move descriptions of ac_(in|out)_buffer_size to the right place
http://bugs.python.org/issue1053
2007-10-05 03:12:00 +00:00
Georg Brandl 2f2bd3efd5 #1196: document default radix for int(). 2007-09-24 17:58:18 +00:00
Georg Brandl cdceeb814d Fix -- being converted to - in HTML. #1186. 2007-09-24 17:56:12 +00:00
Georg Brandl dfecfdb23e Fix #1169: remove docstrings in functions for -OO.
(backport from rev. 58204)
2007-09-19 06:37:26 +00:00
Sean Reifscheider 5e84e80024 issue1172: Documentation of "done" attribute in cgi module. 2007-09-18 23:38:15 +00:00
Sean Reifscheider e8dd31aa2e issue1082: Fixing system and platform names for Vista. 2007-09-17 20:58:46 +00:00
Sean Reifscheider 1644e6ebd1 issue1140: Guido's patch from revision 58098 (2.6) applied to 2.5. 2007-09-17 09:43:11 +00:00
Sean Reifscheider b5ec5876f2 issue1597011: Fix for bz2 module corner-case error due to error checking bug. 2007-09-17 05:45:20 +00:00
Thomas Heller 5cf6ef84b9 ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; backported from trunk.
2007-09-14 20:05:26 +00:00
Martin v. Löwis 3af4220746 Backport 58150: Rename debug import lib to _msi_d.lib. 2007-09-14 07:02:51 +00:00
Martin v. Löwis 782c4179c6 Backport r58149: Clean Release projects as well. 2007-09-14 07:01:59 +00:00
Martin v. Löwis 9a85f040dd Add 2.5 MSI builder. 2007-09-13 18:26:13 +00:00
Georg Brandl fed6bb7d70 Bug #1153: repr.repr() now doesn't require set and dictionary items
to be orderable to properly represent them.
 (backport from rev. 58122)
2007-09-12 19:00:10 +00:00
Georg Brandl 226910f52d bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
(backport from rev. 58119)
2007-09-12 18:29:21 +00:00
Georg Brandl b8c23fb5fe Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
(backport from rev. 58117).
2007-09-12 18:11:03 +00:00
Georg Brandl 5d30e752db Fix #1122: wrong return type documented for various _Size() functions.
(backport from rev. 58115).
2007-09-12 18:08:54 +00:00
Brett Cannon 13bfa3a97b Cause passing a string to generator.throw() to raise a deprecation warning. 2007-09-11 21:12:14 +00:00
Georg Brandl 18726be4d4 Backport: #1095: ln -f doesn't work portably. 2007-09-07 20:12:59 +00:00