summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* backport gvanrossum's checkin ofMichael W. Hudson2002-02-281-0/+1
| | | | | | | | | | | revision 1.35 of bdb.py date: 2002/02/25 23:23:24; author: gvanrossum; state: Exp; lines: +1 -0 canonic(): Fix by Edward K Ream to make breakpoints work better on Windows: apply normcase() as well as abspath(). (Note: this isn't needed to make IDLE work, but it's a good idea anyway.) Bugfix candidate -- both 2.2.1 and 2.1.3.
* backport tim_one's checkin ofMichael W. Hudson2002-02-251-0/+1
| | | | | | | | revision 1.11 of test_descrtut.py Somebody made list.__dict__ grow a '__doc__' key, but apparently didn't run the test suite afterwards. Either that, or whether '__doc__' shows up is platform-dependent!
* backport loewis' checkin ofMichael W. Hudson2002-02-251-10/+31
| | | | | | | revision 1.6 of FixTk.py Set TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov. Fixes #418173 and #219960. 2.2.1 candidate.
* backport loewis' checkin ofMichael W. Hudson2002-02-251-1/+1
| | | | | | | revision 1.48 of smtplib.py Accept Unicode strings as SMTP TO addresses. Fixes #521270. 2.2.1 candidate.
* Backport theller's check-in of revision 1.45:Michael W. Hudson2002-02-221-4/+5
| | | | | | | Make it 1.5.2 compatible again. (I'm not sure how having symlinks around the repository interacts with branches -- I'm going to tread carefully in here)
* backport tim_one's checkin ofMichael W. Hudson2002-02-222-5/+13
| | | | | | | | | | | | revision 1.10 of test_thread.py revision 1.5 of test_threaded_import.py SF bug #516372: test_thread: unhandled exc. in thread Fix exit races in test_thread.py and test_threaded_import.py. I suspect the bug is provokable only under Linux (where child threads seem to get lots of cycles before they get killed after the main thread exits), or on multi-processor machines running other OSes. Bugfix candidate.
* backport gward's checkin ofMichael W. Hudson2002-02-221-1/+1
| | | | | | | revision 1.25 of urllib2.py Fix bug #511786 (2.2.1 candidate): ensure that custom-supplied headers are preserved for redirected requests.
* backport akuchling's checkin ofMichael W. Hudson2002-02-221-0/+7
| | | | | | | | | | | | revision 1.12 of file_util.py [Bug #220993; may also fix bug #479469] Fix flakiness when old installations are present, by always unlinking the destination file before copying to it. Without the unlink(), the copied file remains owned by its previous UID, causing the subsequent chmod() to fail. Bugfix candidate, though it may cause changes on platforms where file ownership behaves differently.
* backport gvanrossum's checkin ofMichael W. Hudson2002-02-221-4/+18
| | | | | | | | | | | | revision 1.21 of CGIHTTPServer.py date: 2002/02/01 16:27:59; author: gvanrossum; state: Exp; lines: +18 -4 Wesley Chun's SF patch 511380: add CGIHTTPServer error supt for Win32 This uses os.popen3 (if it exists) to ensure that errors from a non-Python CGI script are logged. Bugfix candidate.
* backport akuchling's checkin ofMichael W. Hudson2002-02-221-1/+1
| | | | | | | | | | | | | | revision 1.11 of install_scripts.py Restrict the mode to the lowest four octal positions; higher positions contain the type of the file (regular file, socket, link, &c.). This means that install_scripts will now print "changing mode of <file> to 775" instead of "... to 100775". 2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug. This patch was applied by an alarmingly automated system -- I hope it worked...
* Backport theller's checkin of revision 1.35:Michael W. Hudson2002-02-191-1/+5
| | | | | | | package_dir must be converted from the distutils path conventions to local conventions before being used by build_py. Fixes SF bug #509288, probably a candidate for 2.2.1
* SF #515023. Make _DummyThread.join() signature match base class (Thread)Neal Norwitz2002-02-191-1/+1
|
* The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.Martin v. Löwis2002-02-169-24/+15
| | | | | Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
* Added regression test for start()/stop() returning bogus NULL.Fred Drake2002-02-081-0/+10
|
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-02-081-0/+28
| | | | 'release22-maint'.
* Backport loewis' checkin of revision 1.44:Michael W. Hudson2002-02-061-0/+4
| | | | | | | Encode MSVC paths as mbcs. Fixes #509117. 2.2.1 candidate. (apparently 1.5.2 compatibility is still a goal for distutils, but I'll wait until that gets amended on the trunk...)
* string.split() docstring described the interpretation of the maxsplitFred Drake2002-01-301-3/+3
| | | | | argument incorrectly. This closes SF bug #505997.
* It's merge time!Michael W. Hudson2002-01-281-1/+5
| | | | | | | Backport bwarsaw's checkin of revision 1.25: test_multipart_one_part(): Idempotency test case for a multipart/* with only one subpart.
* It's merge time!Michael W. Hudson2002-01-281-2/+7
| | | | | | | | | Backport bwarsaw's checkin of revision 1.6: _parsebody(): When adding subparts to a multipart container, make sure that the first subpart added makes the payload a list object. Otherwise, a multipart/* with only one subpart will not have the proper structure.
* It's merge time!Michael W. Hudson2002-01-281-0/+15
| | | | | | | | | Backport lemburg's checkin of revision 1.11: Restore Python 2.1 StringIO.py behaviour: support concatenating Unicode string snippets to larger Unicode strings. This fix should also go into Python 2.2.1.
* It's merge time!Michael W. Hudson2002-01-281-5/+8
| | | | | | | | | Backport lemburg's checkin of revision 1.20: Restore Python 2.1 StringIO.py behaviour: support concatenating Unicode string snippets to larger Unicode strings. This fix should also go into Python 2.2.1.
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-01-281-0/+8
| | | | 'release22-maint'.
* Add fallback argument to translation(). Set fallback to 1 for install().Martin v. Löwis2002-01-111-2/+5
| | | | Fixes #500595.
* Fix webbrowser.py security bug: be more careful about what we pass toFred Drake2002-01-071-12/+15
| | | | | os.system(). This closes Python bug #500401, Debian bug #127507.
* Time2Internaldate(): Call isinstance() once for each of the type testsFred Drake2002-01-051-4/+4
| | | | | instead of possibly twice by using a sequence of types to check for. Add a message to the ValueError that can be raised.
* Check for time.struct_time in addition to tuples. Use 3 charactersMartin v. Löwis2002-01-051-5/+5
| | | | for zone hours. Fixes #499169.
* Backport gvanrossum's checkin of revision 1.20:Michael W. Hudson2002-01-041-1/+4
| | | | | | | | | | | | | | | Thread.__bootstrap(): ignore exceptions in the self.__delete() call in the finally clause. An exception here could happen when a daemon thread exits after the threading module has already been trashed by the import finalization, and there's not much of a point in trying to insist doing the cleanup in that stage. This should fix SF bug ##497111: active_limbo_lock error at program exit. 2.1.2 and 2.2.1 Bugfix candidate! (has this gone into 2.1.2 yet?)
* Backport gvanrossum's checkin of revisionsMichael W. Hudson2002-01-042-5/+16
| | | | | | | | | | | | copy.py, 1.23 & test_descr.py, 1.114: Fix for SF bug ##497426: can't deepcopy recursive new objects deepcopy(), _reconstruct(): pass the memo to the other function, so that recursive data structures built out of new-style objects may be deeply copied correctly. 2.2.1 bugfix!
* Backport gvanrossum's checkin of version 1.10:Michael W. Hudson2001-12-281-0/+2
| | | | | | | | | _reduce(): Avoid infinite recursion in the pickler when self.__class__ doesn't have the _HEAPTYPE flag set, e.g. for time.struct_time and posix.stat_result. This fixes the immediate symptoms of SF bug #496873 (cPickle / time.struct_time loop), replacing the infinite loop with an exception.
* Backport of akuchling's checkin of 1.10:Michael W. Hudson2001-12-281-1/+1
| | | | | | | | | | | Suggested by Pete Shinners: treat .m and .mm files as source code. Question for Jack Jansen: is this reasonable? Candidate for 2.2 release branch (if Jack thinks it's OK). Not sure how this wasn't on the branch already, seeing as I thought it went into 2.2.
* Backport loewis' checkin of version 1.2:Michael W. Hudson2001-12-281-55/+182
| | | | | | | Regenerated for Linux 2.2.4. This wasn't flagged as a bugfix candidate, but I think it probably was. Howl if you disagree.
* Backport Guido's checkin of version 1.61:Michael W. Hudson2001-12-281-1/+0
| | | | | | | Don't set passiveserver to 0 in connect(). See SF bug #495693. This should definitely be backported to 2.2.1. I'll leave it to Jack to decide whether he wants to fix this in MacPython 2.2.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-12-2892-14096/+40
| | | | 'release22-maint'.
* test_parseaddr_empty(): New test for assuring thatBarry Warsaw2001-12-201-0/+4
| | | | | Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty string. Built on rfc822, this used to return None.
* SF patch #495358 (Artur Zaprzala): rfc822.AddressList and "<>" addressGuido van Rossum2001-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | rfc822.AddressList incorrectly handles empty address. "<>" is converted to None and should be "". AddressList.__str__() fails on None. I got an email with such an address and my program failed processing it. Example: >>> import rfc822 >>> rfc822.AddressList("<>").addresslist [('', None)] >>> str(rfc822.AddressList("<>")) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.1/rfc822.py", line 753, in __str__ return ", ".join(map(dump_address_pair, self.addresslist)) TypeError: sequence item 0: expected string, None found [His solution: in the internal routine AddrlistClass.getrouteaddr(), initialize adlist to "".]
* Whitespace normalization.Tim Peters2001-12-201-1/+0
|
* partial merge with current pythonware codebase:Fredrik Lundh2001-12-191-3/+4
| | | | | - use repr instead of implied str for doubles - updated version number to 1.0.0 (for 2.2 final)
* Add test for pickling new-style class with custom metaclass.Guido van Rossum2001-12-191-0/+12
|
* Pickler.save(): Fix for SF bug #494904: Cannot pickle a class with aGuido van Rossum2001-12-191-0/+4
| | | | | | | | | | | metaclass, reported by Dan Parisien. Objects that are instances of custom metaclasses, i.e. whose class is a subclass of 'type', should be pickled the same as new-style classes (objects whose class is 'type'). This can't be done through a dispatch table entry, and the __reduce__ trick doesn't work for these, since it finds the unbound __reduce__ for instances of the class (inherited from 'object'). So check explicitly using issubclass().
* Add some additional tests that check more proxy behaviors.Fred Drake2001-12-191-0/+18
|
* Fix the test control support for the pickle & cPickle tests so the tests runFred Drake2001-12-192-8/+22
| | | | under regrtest.
* The test using class initarg failed, because it was lacking aGuido van Rossum2001-12-191-0/+3
| | | | __safe_for_unpickling__ attribute.
* Make the module docstring agree with reality: the module prvides theFred Drake2001-12-191-1/+1
| | | | "handler()" function, not the "handle()" function.
* TemporaryFileWrapper: fixed typo in new comment.Tim Peters2001-12-181-1/+1
|
* TemporaryFileWrapper: cache the value of os.unlink for use by __del__,Tim Peters2001-12-181-1/+8
| | | | | to prevent mysterious errors at shutdown due to "os.unlink" turning into "None.unlink".
* Move the helper class _closedsocket *into* the _socketobject class.Guido van Rossum2001-12-181-7/+6
| | | | | | This way, when a socket object is deleted after the socket module has already been zapped by module shutdown, we don't get annoying warnings about exceptions in __del__ methods.
* Recreated after source changes.Thomas Heller2001-12-181-284/+284
|
* Second part of fix for bug [#483982] Python 2.2b2 bdist_wininstThomas Heller2001-12-181-3/+6
| | | | | | | | | | | | crashes. If no external zip-utility is found, the archive is created by the zipfile module, which behaves different now than in 2.1: if the zip-file is created in the root directory if the distribution, it will contain an (empty) version of itself. This triggered the above bug - so it's better to create the zip-file far away in the TMP directory.
* Don't use Latex \code{...} in docstrings.Guido van Rossum2001-12-171-1/+1
|
* Get rid of the stupid backslash in front of the column zero openBarry Warsaw2001-12-171-1/+1
| | | | | | | | | paren. This was there to worm around a stupid XEmacs bug, but since I can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's possible the problem has been fixed. We shouldn't have to be working around editor bugs anyway. If it crops up again, I'll report it (again) to the XEmacs crowd.