Commit Graph

11897 Commits

Author SHA1 Message Date
Martin v. Löwis e9c996c14d Patch #1966: Break infinite loop in httplib when the servers
implements the chunked encoding incorrectly.
2008-02-12 18:48:23 +00:00
Lars Gustäbel 08303dbd72 Backport the nts() function from the trunk. This fixes problems with
the xstar format that puts extra fields inside the space that POSIX
has reserved for the prefix field.
2008-02-11 18:36:07 +00:00
Nick Coghlan 5ca1cba252 Backport relevant part of issue 2021 fix (r60695): Support with statement properly in tempfile.NamedTemporaryFile 2008-02-11 12:53:42 +00:00
Nick Coghlan 0b5c17a9c3 Backport test_resource fix from trunk to stop it crashing on Ubuntu 2008-02-11 11:31:24 +00:00
Amaury Forgeot d'Arc 3e5f8a6975 issue 2045: Infinite recursion when printing a subclass of defaultdict,
if default_factory is set to a bound method.

Backport of r60663.
2008-02-08 01:05:21 +00:00
Walter Dörwald ec4301e60f Backport r60653:
Fix typo in docstring for Calendar.itermonthdays().
2008-02-07 19:58:37 +00:00
Thomas Heller 527bf3a826 Fix the way methods are created for the _ctypes.COMError exception
type; this fix is already in the trunk.
2008-02-06 19:58:46 +00:00
Guido van Rossum 6ae66d7300 Backport doc fixes from 2.6. These are all things that were already
supported but weren't in the docs, like conditional backreferences.
2008-02-05 17:31:37 +00:00
Guido van Rossum 9decb70349 In the experimental 'Scanner' feature, the group count was set wrong. 2008-02-05 17:27:23 +00:00
Lars Gustäbel 42993fef1c Issue #1507247, #2004: Use mode 0700 for temporary directories and
default permissions for missing directories.

(backport from r53526, r60588)
2008-02-05 12:00:20 +00:00
Amaury Forgeot d'Arc bc212104e4 No need to emit co_lnotab item when both offsets are zeros.
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.

Also test that this correction does not impact the debugger.
2008-02-04 23:51:55 +00:00
Amaury Forgeot d'Arc 316f8a8d3c backport of r60575 (issue #1750076): Debugger did not step on every iteration of a while statement.
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.

Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.

The lnotab seems to be exactly the same as with python2.4.
2008-02-04 22:34:57 +00:00
Thomas Heller c9b20734f4 Revert rev. 59926, it breaks comtypes (I need to further examine this). 2008-01-28 08:42:22 +00:00
Neal Norwitz 249cbe794e Try harder to provoke the exception since the ia64 buildbot still
doesn't reliably produce an exception.
2008-01-28 01:33:23 +00:00
Neal Norwitz 209ea39d31 Sync up with trunk. Try to flush repeatedly to ensure the exception is raised. 2008-01-27 20:08:04 +00:00
Christian Heimes 0b11c5fdf6 Change isbasestring function as discussed on the cvs list a while ago 2008-01-27 19:01:59 +00:00
Neal Norwitz 6179234803 Backport 60342:
Try to prevent this test from being flaky.  We might need a sleep in here
which isn't as bad as it sounds.  The close() *should* raise an exception,
so if it didn't we should give more time to sync and really raise it.
2008-01-27 05:02:56 +00:00
Neal Norwitz ab577c1b32 Backport r58453:
Let the O/S supply a port if none of the default ports can be used.
This should make the tests more robust at the expense of allowing
tests to be sloppier by not requiring them to cleanup after themselves.
(It will legitamitely help when running two test suites simultaneously
or if another process is already using one of the predefined ports.)

This will hopefully fix test_asynchat.
2008-01-27 01:24:44 +00:00
Neal Norwitz b03528ca20 Backport 60334:
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't (always) cause the exception, but the close() does.
2008-01-27 01:23:50 +00:00
Amaury Forgeot d'Arc f1a7178cd5 #1920: when considering a block starting by "while 0", the compiler optimized the
whole construct away, even when an 'else' clause is present::

    while 0:
        print("no")
    else:
        print("yes")

did not generate any code at all.

Now the compiler emits the 'else' block, like it already does for 'if' statements.

Backport of r60265.
2008-01-24 23:42:08 +00:00
Andrew M. Kuchling 61c2c9536f Fix failing test_mailbox on Cygwin 2008-01-24 14:08:00 +00:00
Thomas Heller fe528ebf68 Invert the checks in get_[u]long and get_[u]longlong. The intent was
to not accept float types; the result was that integer-like objects
were not accepted.
2008-01-24 13:08:54 +00:00
Christian Heimes d2f4cb8cca Fixed bug #1915: Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support. 2008-01-23 14:20:41 +00:00
Guido van Rossum 2c63442586 Backport r60208, skip some tests for huge passwd/group files. 2008-01-23 01:20:26 +00:00
Gregory P. Smith 8f034d9af2 Backport of r60190:
- Fix Issue #1703448: A joined thread could show up in the
  threading.enumerate() list after the join() for a brief period until
  it actually exited.
2008-01-22 01:29:11 +00:00
Mark Dickinson 9f26fcce04 Remove extra test that was accidentally backported from the trunk 2008-01-21 23:35:11 +00:00
Mark Dickinson 2bebadfe51 Issue 1678380: fix a bug identifying -0.0 and 0.0 2008-01-21 21:54:47 +00:00
Georg Brandl 7bdff2c8e5 Issue #1882: when compiling code from a string, encoding cookies in the
second line of code were not always recognized correctly.
 (backport from rev. 60168)
2008-01-21 18:35:52 +00:00
Vinay Sajip 8123ef2ec0 Fix: #1836: Off-by-one bug in TimedRotatingFileHandler rollover calculation. Patch thanks to Kathryn M. Kowalski. 2008-01-21 17:03:46 +00:00
Andrew M. Kuchling 0e65fe4b90 Fix off-by-one error that resulted in missed characters 2008-01-19 23:44:39 +00:00
Gregory P. Smith 1cc98af8a1 backport r60116 - fix zipfile to work with archives having file
headers beyond the signed 2**31 byte boundary.
2008-01-19 23:16:01 +00:00
Gregory P. Smith c223c6cb41 backport r60104 + r60111 from trunk.
- Issue #1336: fix a race condition in subprocess.Popen if the garbage
  collector kicked in at the wrong time that would cause the process
  to hang when the child wrote to stderr.
2008-01-19 22:29:41 +00:00
Georg Brandl 7829d603a8 Backport r59688. 2008-01-19 20:34:19 +00:00
Andrew M. Kuchling ea72dcb05c Bug 1277: make Maildir use the user-provided factory instead of hard-wiring MaildirMessage. 2008-01-19 20:14:40 +00:00
Guido van Rossum 5f4fc831ad This got fixed in r60056. 2008-01-18 23:06:49 +00:00
Guido van Rossum 03706d2db0 Backport r55080:
Fix for #1303614 and #1174712:
- __dict__ descriptor abuse for subclasses of built-in types
- subclassing from both ModuleType and another built-in types
2008-01-18 21:31:32 +00:00
Gregory P. Smith 0f99b71bd0 ** backport r60015 from trunk.
- Issue829951: In the smtplib module, SMTP.starttls() now complies with
  RFC 3207 and forgets any knowledge obtained from the server not obtained
  from the TLS negotiation itself.  Patch contributed by Bill Fenner.
2008-01-17 07:54:47 +00:00
Raymond Hettinger 665ddc9bb3 Fix 1698398: Zipfile.printdir() crashed because the format string expected a tuple object of length six instead of a time.struct_time object. 2008-01-14 23:02:51 +00:00
Thomas Heller b9c741c43c Added NEWS entry, plus:
Merged revisions 59925 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes

........
  r59925 | thomas.heller | 2008-01-11 20:34:06 +0100 (Fr, 11 Jan 2008) | 5 lines

  Raise an error instead of crashing with a segfault when a NULL
  function pointer is called.

  Will backport to release25-maint.
........
2008-01-11 19:48:46 +00:00
Mark Dickinson d77fedc745 Fix Decimal hash in Python 2.5 maintenance branch so that hash(x) == hash(int(x))
for any integral Decimal instance x.
2008-01-08 21:42:03 +00:00
Facundo Batista 5dfc48060b Decimal module and test cases were updated to their state of
the art.  It now complies latest specification and tests.

The only difference of this version with the one in the trunk
is that a small subset that hash tests were removed, because
they rely on modifications to core hash() function (see
issue 1182 for further details).
2008-01-08 16:20:31 +00:00
Facundo Batista d0dcbc4ba2 Backport of issue 1755179 fix. 2008-01-07 16:49:02 +00:00
Guido van Rossum 6e3e6e0d77 Forgot to backport the rest of #1637. 2008-01-06 02:40:07 +00:00
Guido van Rossum 81728cf4c9 Backport r59758.
Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
Fix by John Nagle.
2008-01-05 23:34:38 +00:00
Guido van Rossum 62bceeccdd Backport r57216 (see issue #1731).
Add a hack (originally devised in a slightly different form by Thomas Wouters)
to prevent spurious tracebacks when a daemon thread's cleanup happens to wake
up when the world around it has already been destroyed.

This also backports other small changes to this file, essentially making
it identical to the trunk version.
2008-01-04 19:06:02 +00:00
Lars Gustäbel e5f9e588c6 Issue #1735: TarFile.extractall() now correctly sets directory
permissions and times.

(backport from r59712)
2008-01-04 14:44:23 +00:00
Christian Heimes 12f03ccece Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. 2008-01-04 13:22:36 +00:00
Guido van Rossum 6df9a82bd3 Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
Regular Expression inline flags not handled correctly for some unicode
characters.
2008-01-03 19:08:15 +00:00
Guido van Rossum 9b1f5a4740 Patch #1696. Don't attempt to call None.close() in dry-run mode. 2008-01-02 18:59:36 +00:00
Thomas Heller 4f1cbd27b4 Change ctypes version number to 1.0.3 (when Python 2.5.2 is released,
ctypes 1.0.3 will be also be released).
2007-12-19 17:22:34 +00:00
Thomas Heller 8e9e4d8f95 Issue #1642: Fix segfault in ctypes when trying to delete attributes. 2007-12-18 19:00:59 +00:00
Alexandre Vassalotti 483704508d Backport r59480.
Fix issue #1313119.
2007-12-13 18:18:47 +00:00
Lars Gustäbel 7cc9c8bbe1 Issue #1531: Read fileobj from the current offset, do not seek to
the start.

(backport from r59260)
2007-12-01 21:06:06 +00:00
Amaury Forgeot d'Arc 8334a4fc31 Backport of r59241: str.decode fails on very long strings on 64bit platforms.
PyArgs_ParseTuple t# and w# formats truncated the lengths to 32bit.
2007-11-30 21:53:17 +00:00
Skip Montanaro 664ad76a34 back in these go - thanks to Titus Brown for the fix 2007-11-24 14:31:16 +00:00
Amaury Forgeot d'Arc 30f61cbb13 Issue #1445: Fix a SystemError when accessing the ``cell_contents``
attribute of an empty cell object.  Now a ValueError is raised.

Backport of r59170.
2007-11-24 13:53:29 +00:00
Skip Montanaro fb80cd91a8 revert change that breaks test_doctest (which I forgot to run - sorry) 2007-11-24 04:29:52 +00:00
Skip Montanaro ab4fce4d7c Make trace and doctest play nice together (issue 1429818). Backported from
head.
2007-11-23 17:09:34 +00:00
Brett Cannon a95fdb4f9c Backport of a fix for the __loader__.get_data() test. 2007-11-23 00:07:49 +00:00
Ronald Oussoren ce189e4e7b A test that should test for osx >= 10.4.0 actually tested for os versions <= 10.4. The end result is that
a universal ("fat") build will claim to be a single-architecture on on OSX 10.5 (Leopard).

This patch fixes this issue.
2007-11-22 10:14:26 +00:00
Brett Cannon d3a81df178 Backport of r59082 (doctest and using __loader__.get_data()). 2007-11-21 00:58:54 +00:00
Walter Dörwald f481598cd0 Backport r59049:
Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())
calling codecs.utf_8_decode() with final==True, which falled with incomplete
byte sequences. Fix and test by James G. Sack.
2007-11-19 12:43:39 +00:00
Walter Dörwald ad91c78698 Backport r59047: Fix typo in comment. 2007-11-19 12:23:44 +00:00
Amaury Forgeot d'Arc c572dc3752 Backport for issue1265 (pdb bug with "with" statement).
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set.  This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.

It is necessary to save/restore the exception around the call to the trace
function.

This happens a lot with py3k: isinstance() of an ABCMeta instance runs
    def __instancecheck__(cls, instance):
        """Override for isinstance(instance, cls)."""
        return any(cls.__subclasscheck__(c)
                   for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.

And the problem can be reproduced in 2.5 with pure python code.
2007-11-13 22:43:05 +00:00
Guido van Rossum 809123c61f Issue 1704621. Fix segfaults in list_repeat() and list_inplace_repeat().
The C changes aren't quite the same as the patch given there; the test is.
2007-11-12 20:04:41 +00:00
Christian Heimes 50bbcc27e3 Fixed #1254: pdb fails to launch some script. 2007-11-12 17:28:45 +00:00
Walter Dörwald ad7363bed1 Backport r58942:
Fix TextCalendar.prweek(). This closes issue #1427.
2007-11-12 10:03:39 +00:00
Christian Heimes d66350ad58 Fix for #1427: Error in standard module calendar
merge -r58935:58936 ../trunk
2007-11-12 01:25:08 +00:00
Nick Coghlan e53fcfd7d3 Fix issue #1705170 (backport from trunk) 2007-11-07 12:26:40 +00:00
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
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
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
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 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
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
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
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 76ee2272ff Backport 58348: use a reliable host in the test. 2007-10-06 15:55:25 +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
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
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
Gregory P. Smith 339a3ad87a backport of r58023 to fix unit test suite issue1112 on windows 2007-09-06 23:01:32 +00:00
Martin v. Löwis fc787d515d Patch #1031213: Decode source line in SyntaxErrors back to its original
source encoding.
2007-09-04 14:20:25 +00:00
Martin v. Löwis 39f1f45262 Bug #1709599: Run test_1565150 only if the file system is NTFS. 2007-08-30 18:58:29 +00:00
Skip Montanaro 51cf11271f backport r57626 2007-08-28 23:26:55 +00:00
Lars Gustäbel a9bad98e3d TarFile.__init__() no longer fails if no name argument is passed and
the fileobj argument has no usable name attribute (e.g. StringIO).

(backported from r57616)
2007-08-28 12:33:15 +00:00
Skip Montanaro 1ab6a25401 Backport this change to get test_sqlite working on Macs. Same change Thomas
made to the trunk awhile ago I believe.
2007-08-27 03:00:59 +00:00
Gregory P. Smith 838c33268b backport of r57378 to fix bug 1725856 2007-08-24 05:26:15 +00:00
Gregory P. Smith e468ada1e6 Back port of r57286 from py3k and trunk
------------------------------------------------------------------------
  r57286 | gregory.p.smith | 2007-08-22 14:32:34 -0700 (Wed, 22 Aug 2007) | 3 lines

  stop leaving log.0000001 __db.00* and xxx.db turds in developer
  sandboxes when bsddb3 tests are run.
2007-08-23 05:05:12 +00:00
Neal Norwitz b354e3d915 Fix a typo in a comment 2007-08-21 04:55:11 +00:00
Georg Brandl f2944600bd Fix #1771558 (already fixed in trunk). 2007-08-10 17:29:51 +00:00
Georg Brandl eb4b738963 Revert the fix for #1548891, it broke backwards compatibility with arbitrary read buffers.
Fixes #1730114.
 (backport from rev. 56830)
2007-08-08 13:03:45 +00:00
Hye-Shik Chang 36fe3c0a84 Backport from trunk r56727:
Fix gb18030 codec's bug that doesn't map two-byte characters on
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
2007-08-04 04:15:04 +00:00
Martin v. Löwis bd28ca65d6 Bug #1704793: Raise KeyError if unicodedata.lookup cannot
represent the result in a single character.
2007-07-28 07:01:43 +00:00
Martin v. Löwis 088277f290 Change location of the package index to pypi.python.org/pypi. 2007-07-25 16:24:08 +00:00
Andrew M. Kuchling 6ecd4a0535 [Backport of r56382]
Avoid exception if there's a stray directory inside a Maildir folder.

The Maildir specification doesn't seem to say anything about this
situation, and it can happen if you're keeping a Maildir mailbox in
Subversion (.svn directories) or some similar system.  The patch just
ignores directories in the cur/, new/, tmp/ folders.
2007-07-14 22:06:30 +00:00
Barry Warsaw 9c2d4deec3 In response to this SF bug:
[ 1752723 ] email.message_from_string: initial line gets discarded

I added a test to assert that when the first line of text passed to
message_from_string() contains a leading space, the message ends up with the
appropriate FirstHeaderLineIsContinuationDefect on its defects list.

The bug is invalid.
2007-07-13 21:20:38 +00:00
Thomas Heller 6f4155d1de Fix for SF# 1701409: segfault in c_char_p of ctypes. The repr output
of c_char_p and c_wchar_p has changed as a sideeffect.
2007-07-13 17:07:55 +00:00
Georg Brandl c5db923994 Patch #1673759: add a missing overflow check when formatting floats
with %G.
 (backport from rev. 56298)
2007-07-12 08:38:04 +00:00
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