5667 Commits

Author SHA1 Message Date
Tim Peters
2457a7e368 Backport of a new test to check the interaction between cyclic GC
and the trashcan mechanism.
2002-03-28 23:18:08 +00:00
Michael W. Hudson
4f0c5d4b4b It made it.
backport gvanrossum's checkin of
    revision 1.58 of pickle.py

Fix for SF 502085.
Don't die when issubclass(t, TypeType) fails.

Bugfix candidate (but I think it's too late for 2.2.1).
2002-03-26 09:57:13 +00:00
Michael W. Hudson
dcddbc3a26 Backport akuchling's netrc test. 2002-03-25 13:23:53 +00:00
cvs2svn
1f87903b31 This commit was manufactured by cvs2svn to create branch
'release22-maint'.
2002-03-25 13:23:53 +00:00
Michael W. Hudson
1635ea193a backport akuchling's checkin of
revision 1.14 of netrc.py

[Bug #532115]  netrc module was broken
   * 'macdef' (macro definition) wasn't parsed correctly
   * account value not reset for a subsequent 'default' line
   * typo: 'whitepace' -> 'whitespace'

Bugfix candidate.
2002-03-25 13:22:14 +00:00
Michael W. Hudson
c8610f62d3 backport akuchling's checkin of
revision 1.63 of install.py

Revert part of previous patch: several install_* subcommands expect
    .compile to be None, and set it to true if it is.
    Caught by Pearu Peterson.

Bugfix candidate, if the previous change is accepted for
release22-maint.
2002-03-25 13:15:28 +00:00
Michael W. Hudson
5fab811d3c backport akuchling's checkin of
revision 1.62 of install.py

Add missing Boolean options
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None

Bugfix candidate.
2002-03-25 13:15:04 +00:00
Michael W. Hudson
9123ef8a9b Thomas said this was OK.
backport akuchling's checkin of
    revision 1.30 of bdist_wininst.py

Add unlisted Boolean options.  Thomas H., can you please check that I
    got this right?

Bugfix candidate, unless Thomas notes a problem.
2002-03-25 13:14:23 +00:00
Michael W. Hudson
83e9b5a59e backport akuchling's checkin of
revision 1.28 of bdist_rpm.py

[Bug #517451] bdist_rpm didn't list all of its Boolean options.
   (Someone should check the other commands for this same error.)

Bugfix candidate.
2002-03-25 13:13:45 +00:00
Michael W. Hudson
23e3982490 backport nascheme's checkin of
revision 1.60 of pydoc.py

Quote href properly.
2002-03-25 13:11:47 +00:00
Michael W. Hudson
50b458fee2 backport nascheme's checkin of
revision 1.59 of pydoc.py

Remove unnecessary \b.  It was causing the RE to miss the tailing
slash on strings like "http://www.python.org/ is good".
2002-03-25 13:11:31 +00:00
Michael W. Hudson
1deeef243d backport nascheme's checkin of
revision 1.27 of cmd.py

Flush stdout before reading next command.  Closes SF bug 526357.
2002-03-25 12:34:15 +00:00
Michael W. Hudson
68977c28e3 Repeat trick with test_calendar.py 2002-03-25 12:33:24 +00:00
Michael W. Hudson
15abc58544 Slap HEAD version of calendar.py onto branch.
Hope this was right thing to do.
2002-03-25 12:31:48 +00:00
Michael W. Hudson
d360a0058e backport akuchling's checkin of
revision 1.47 of httplib.py

[Bug #531616] Make HTTPS work again by adding a sendall method to the
FakeSocket class.  Without it, the sendall() call got the method on
the underlying socket object, and that messed up SSL.

Does httplib use other methods of sockets that FakeSocket doesn't support?
Someone should take a look...  (I'll try to give it a once-over.)

2.2.1 bugfix candidate.
2002-03-25 12:24:58 +00:00
Barry Warsaw
5516c7b319 _handle_multipart(): Fixes for SF bug #531966. Specifically two
situations are handled now: a multipart/* containing no payload
(i.e. never set), and a multipart/* containing a scalar payload
(i.e. Message.add_payload() having been called exactly once, not
passing in a sequence object).

_make_boundary(): Fixed bogus cut-n-paste error (self as first arg).

I will merge these changes into the standalone email package and
Python 2.3 separately.
2002-03-22 16:21:56 +00:00
Barry Warsaw
25cf603523 test_no_parts_in_a_multipart(): A test for the layout of a
multipart/mixed message with no attachments.

test_one_part_in_a_multipart(): A test for the layout of a
multipart/mixed message with a single attachment.

test_seq_parts_in_a_multipart(): A test for the layout of a
multipart/mixed message with a single attachment that happens to be a
sequence of length one.

These tests ensure no regressions on the fix for SF bug #531966.

I will merge these into the standalone email package and Python 2.3
trunk separately.
2002-03-22 16:19:30 +00:00
Andrew M. Kuchling
84b5f1ab80 To make 'urllib.py -t' run again, change FTP URL to a file that actually
exists.
2002-03-18 22:19:24 +00:00
Michael W. Hudson
d11f1fac66 Make StringIO work in non-unicode builds.
Lots of tests fail in non-unicode builds, but I think most of these are
"bugs" in the tests.  I hope so, anyway.
2002-03-18 13:31:31 +00:00
Michael W. Hudson
fca4ed6a09 backport jackjansen's checkin of
revision 1.2 of ERRNO.py
    revision 1.2 of FILE.py
    revision 1.2 of IN.py

Regenerated for Irix 6.5.
2002-03-18 13:10:41 +00:00
Michael W. Hudson
c981082410 backport jackjansen's checkin of
revision 1.3 of regen

Patch by Michael Pruett: make regen work on Irix 6.0 and 6.5.
2002-03-18 13:10:13 +00:00
Michael W. Hudson
1c136f35dd amk's fix attached to
[ 516299 ] urlparse can get fragments wrong
2002-03-18 13:03:40 +00:00
Michael W. Hudson
724374d162 doerwalter's failing examples from
[ 529104 ] broken error handling in unicode-escape
2002-03-18 12:54:51 +00:00
Guido van Rossum
09f2187704 Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault
The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.

I also added a testcase for the fix to classmethods() in test_descr.py.

I'll apply this to 2.3 too.
2002-03-18 03:05:36 +00:00
Michael W. Hudson
18f69f8e27 Backport a checkin of jvr's:
on MacOSX/Darwin, use ranlib when building static libs.

I hope this belongs on the branch...
2002-03-17 19:47:39 +00:00