summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Backport of a new test to check the interaction between cyclic GCTim Peters2002-03-281-0/+29
| | | | and the trashcan mechanism.
* It made it.Michael W. Hudson2002-03-261-1/+5
| | | | | | | | | | 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).
* Backport akuchling's netrc test.Michael W. Hudson2002-03-251-1/+0
|
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-03-251-0/+43
| | | | 'release22-maint'.
* backport akuchling's checkin ofMichael W. Hudson2002-03-251-11/+9
| | | | | | | | | | | 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.
* backport akuchling's checkin ofMichael W. Hudson2002-03-251-1/+1
| | | | | | | | | | | 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.
* backport akuchling's checkin ofMichael W. Hudson2002-03-251-3/+2
| | | | | | | | | | 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.
* Thomas said this was OK.Michael W. Hudson2002-03-251-1/+2
| | | | | | | | | | 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.
* backport akuchling's checkin ofMichael W. Hudson2002-03-251-1/+1
| | | | | | | | | 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.
* backport nascheme's checkin ofMichael W. Hudson2002-03-251-1/+2
| | | | | | revision 1.60 of pydoc.py Quote href properly.
* backport nascheme's checkin ofMichael W. Hudson2002-03-251-1/+1
| | | | | | | 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".
* backport nascheme's checkin ofMichael W. Hudson2002-03-251-0/+1
| | | | | | revision 1.27 of cmd.py Flush stdout before reading next command. Closes SF bug 526357.
* Repeat trick with test_calendar.pyMichael W. Hudson2002-03-251-0/+23
|
* Slap HEAD version of calendar.py onto branch.Michael W. Hudson2002-03-251-17/+43
| | | | Hope this was right thing to do.
* backport akuchling's checkin ofMichael W. Hudson2002-03-251-0/+3
| | | | | | | | | | | | | 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.
* _handle_multipart(): Fixes for SF bug #531966. Specifically twoBarry Warsaw2002-03-221-2/+15
| | | | | | | | | | | | 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.
* test_no_parts_in_a_multipart(): A test for the layout of aBarry Warsaw2002-03-221-0/+76
| | | | | | | | | | | | | | | | 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.
* To make 'urllib.py -t' run again, change FTP URL to a file that actuallyAndrew M. Kuchling2002-03-181-1/+1
| | | | exists.
* Make StringIO work in non-unicode builds.Michael W. Hudson2002-03-182-14/+15
| | | | | Lots of tests fail in non-unicode builds, but I think most of these are "bugs" in the tests. I hope so, anyway.
* backport jackjansen's checkin ofMichael W. Hudson2002-03-183-69/+776
| | | | | | | | revision 1.2 of ERRNO.py revision 1.2 of FILE.py revision 1.2 of IN.py Regenerated for Irix 6.5.
* backport jackjansen's checkin ofMichael W. Hudson2002-03-181-1/+2
| | | | | | revision 1.3 of regen Patch by Michael Pruett: make regen work on Irix 6.0 and 6.5.
* amk's fix attached toMichael W. Hudson2002-03-183-1/+26
| | | | [ 516299 ] urlparse can get fragments wrong
* doerwalter's failing examples fromMichael W. Hudson2002-03-181-0/+8
| | | | [ 529104 ] broken error handling in unicode-escape
* Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfaultGuido van Rossum2002-03-181-0/+5
| | | | | | | | | | | 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.
* Backport a checkin of jvr's:Michael W. Hudson2002-03-171-1/+4
| | | | | | on MacOSX/Darwin, use ranlib when building static libs. I hope this belongs on the branch...
* Backport nnorwitz's checkin of revision 1.119:Michael W. Hudson2002-03-171-1/+1
| | | | Fix typo
* Backport a little test from Skip.Michael W. Hudson2002-03-171-0/+4
|
* SF patch 530070: pydoc regression, from Martin and Guido.Tim Peters2002-03-171-2/+11
| | | | | Change the way __doc__ is handled, to avoid blowing up on non-string __doc__ values.
* Backport Tim's checkin of revision 1.5:Michael W. Hudson2002-03-171-11/+18
| | | | This test left a new set of 3 junk files behind each time it was run.
* Stop using not-exposed-in-22x os.O_ constants.Michael W. Hudson2002-03-171-17/+1
|
* So there is some merit in slogging through ~4800 lines of cvs log.Michael W. Hudson2002-03-171-3/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring tempfile.py up to date from the trunk. There have been three checkins (all by Tim): SF bug #509805 tempfile.gettempdir not threadsafe This is an ancient race when multiple threads call gettempdir() (or anything relying on it) for the first time. Fixed x-platform via the Big Hammer of rearranging the code to serialize the first calls. Subsequent calls are as fast as before. Note that the Python test suite can't provoke this bug: it requires setting up multiple threads making the very first calls into tempfile, but the test suite uses tempfile several times before getting to test_threadedtempfile. Bugfix candidate. [and] New TemporaryFile implementation for Windows: this doesn't need a TemproraryFileWrapper wrapper anymore, and should be immune from the problem that a temp file inherited by a spawned process caused an attempt to close the temp file in the spawning process to blow up (the unlink in TemporaryFileWrapper.close() blew up with a "Permission denied" error because, despite that the temp file got closed in the spawning process, the spawned process still had it open by virtue of C-level file descriptor inheritance). In context, that bug took days to figure out <wink/sigh>. [and] Thanks to Detlef Lannert for pointing out a typo in the code that uses _DummyMutex on platforms without threads. The first and third of these are pretty clearly bugfixes; I think the second is too.
* Take Tim's work on file.truncate out of 2.2.1 again.Michael W. Hudson2002-03-171-30/+15
|
* Merge jackjansen's checking of revision 1.5.Michael W. Hudson2002-03-161-0/+8
|
* Backport Tim's work on getting file.truncate working better on Win32.Michael W. Hudson2002-03-161-15/+30
| | | | | "cvs diff | patch" managed to stick the NEWS item in the 2.2 final section! I wonder which silly man wrote patch <wink>.
* backport my checkin ofMichael W. Hudson2002-03-161-2/+9
| | | | | | | | | | | | revision 1.54 of os.py Fix [ 530236 ] os.py assumes existence of statvfs_resul This was pretty dense of me. Sorry. 2.2.1 candidate.
* This checkin backport two checkins by Skip.Michael W. Hudson2002-03-161-6/+15
| | | | | | | | | | | | | | | | backport montanaro's checkin of revision 1.24 of calendar.py make _localized_name instances work more like the tuples they replaced. In particular, negative indexes work and they are limited by the actual length of the names they represent (weekday and month names). This closes bug #503202. [and then] Corrected _localized_name.__getitem__ based on code in patch 503202 (which I thought was just a bug report, so didn't notice - doh!). This handles slicing, which v 1.23 didn't.
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-161-0/+89
| | | | | | | | | | | | | | | revision 1.121 of test_descr.py "Fix" for SF bug #520644: __slots__ are not pickled. As promised in my response to the bug report, I'm not really fixing it; in fact, one could argule over what the proper fix should do. Instead, I'm adding a little magic that raises TypeError if you try to pickle an instance of a class that has __slots__ but doesn't define or override __getstate__. This is done by adding a bozo __getstate__ that always raises TypeError. Bugfix candidate (also the checkin to typeobject.c, of course).
* Naughty Fred forgot to mark this as a bugfix candidate.Michael W. Hudson2002-03-161-14/+51
| | | | | | | backport fdrake's checkin of revision 1.5 of log.py Set/update self.cwd properly.
* Wrap a couple of long lines.Fred Drake2002-03-151-2/+4
|
* Patch #527427: minidom fails to use NodeList sometimes.Martin v. Löwis2002-03-151-4/+4
|
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-151-0/+12
| | | | | | | | revision 1.120 of test_descr.py Test for the fix I just checked in to moduleobject.c. Bugfix candidate.
* backport akuchling's checkin ofMichael W. Hudson2002-03-151-0/+1
| | | | | | | | | | | | revision 1.29 of asyncore.py [Bug #517554] When a signal happens during the select call in asyncore.poll, the select fails with EINTR, which the code catches. However, the code fails to clear the r/w/e arrays (like poll3 does), which means it acts as if every descriptor had received all possible events. Bug report and patch by Cesar Eduardo Barros
* backport akuchling's checkin ofMichael W. Hudson2002-03-151-0/+29
| | | | | | revision 1.10 of test_cfgparser.py As part of fixing bug #523301, add a simple test of ConfigParser.write()
* backport akuchling's checkin ofMichael W. Hudson2002-03-151-0/+1
| | | | | | revision 1.6 of test_cfgparser As part of fixing bug #523301, add a simple test of ConfigParser.write()
* I presume this should go here.Michael W. Hudson2002-03-151-2/+2
| | | | | | | | | backport akuchling's checkin of revision 1.39 of ConfigParser.py [Bug #523301] ConfigParser.write() produces broken output for values that were originally rfc822-like line continuations. Modified version of a patch from Matthias Ralfs.
* Remove duplicate "import os"Neal Norwitz2002-03-151-1/+0
|
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-141-0/+10
| | | | | | revision 1.118 of test_descr.py Add a check that SF bug 516727 is really fixed.
* I don't understand it either...Michael W. Hudson2002-03-141-1/+2
| | | | | | | | | | backport jhylton's checkin of revision 1.7 of test_pyclbr.py Fix pyclbr test of httplib without really understanding pyclbr. It seems that the new class HTTP11 in httplib.test() isn't discoverable by pyclbr, which causes this test to fail.
* SF #515015, raise exception if code not found in findsource()Neal Norwitz2002-03-131-0/+1
|
* backport loewis' checkin ofMichael W. Hudson2002-03-111-2/+2
| | | | | | | revision 1.66 of ftplib.py Access the exception argument to see whether it starts with '500'. Fixes #527855.