summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* backport 1.14:Anthony Baxter2002-01-101-6/+2
| | | | | | | Fix the second reincarnation of SF #456395 -- failure on IRIX. This time use .replace() to change all \r\n into \n, not just the last one. This makes test_pty work on Irix.
* Backport gvanrossum's checkin of revision 1.20:Anthony Baxter2002-01-101-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.
* 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.
* oops. nearly forgot this one:Anthony Baxter2001-12-231-1/+1
| | | | backport patch #495358 rfc822.AddressList and "<>" address
* The Grande 'sendall()' patch. I believe that I've picked up everythingAnthony Baxter2001-12-239-19/+17
| | | | | | | | in the std lib that should be using sendall(), rather than send() - I've tried to check each of the patches. Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
* darn excess whitespace.Anthony Baxter2001-12-231-1/+0
|
* partial backport of 1.25:Anthony Baxter2001-12-231-13/+17
| | | | select not defensive. check for EINTR and make sure it's handled painlessly.
* d'oh! could have _sworn_ I checked this in last weekend.Anthony Baxter2001-12-211-0/+5
| | | | | | | | | | | | Make dumbdbm merely "dumb", rather than "terminally broken". Without this patch, it's almost impossible to use dumbdbm _without_ causing horrible datalossage. With this patch, dumbdbm passes my own horrible torture test, as well as the roundup test suite. dumbdbm really could do with a smidgin of a rewrite or two, but that's not suitable for the release21-maint branch. This patch should go into the trunk as well.
* Backport patch 1.57 to 2.1.2. Apparently ftp servers that send 227Guido van Rossum2001-12-181-7/+9
| | | | | | | | | | | | | | responses that the original parse227() routine can't handle are becoming more common. """ Change the 227 response parser to use a more liberal regular expression. This is needed for certain servers that (in violation of the standard) don't return the parentheses in the response. This fixes SF bug #441712 by Henrik Weber (not exactly using his patch). """
* backport unixccompiler.py 1.36, ccompiler.py 1.40Anthony Baxter2001-12-052-4/+9
| | | | | support for dylib - allow zlib included in OS to be used rather than have to compile and install in /usr/local
* backport 1.15Anthony Baxter2001-12-051-1/+12
| | | | | | Make sure path names inserted into ZIP files are normalized to use "/" as the directory separator, as required by the format specification. This closes SF bug #440693.
* backport 1.21 and 1.22Anthony Baxter2001-12-051-2/+2
| | | | | | | | -- Fix malformed line (PyChecker) -- _os should be os; reported by Neal Norwitz. --
* backport 1.134:Anthony Baxter2001-12-051-1/+1
| | | | | Added missing parameter in call to http_error_default(); reported by Neal Norwitz.
* backport 1.17:Anthony Baxter2001-12-051-7/+9
| | | | | | | | | Fix SF bug [ #447370 ] typo in urllib2.py Also fix another bug caught by pychecker-- HTTPError() raised when redirect limit exceed did not pass an fp object. Had to change method to keep fp object around until it's certain that the error won't be raised. Remove useless line in do_proxy().
* backport 1.8, 1.9Anthony Baxter2001-12-051-4/+5
| | | | | | | | | | | -- patch 418489 from Andrew Dalke for string format bug -- Merged in bugfix from PyUnit CVS for problem reported by Gary Todd. If 'unittest.py' was run from the command line with the name of a test case class as a parameter, it failed with an ugly error. (Which was a shame, because the documentation says you can do that.) --
* backport:Anthony Baxter2001-12-051-1/+1
| | | | Add 'sendall' to list of socket methods.
* backport 1.7:Anthony Baxter2001-12-051-1/+1
| | | | | Amazing. This would open the sound file in text mode. Fixed. SF bug #446219.
* backport half of 1.11:Anthony Baxter2001-12-051-1/+3
| | | | | | __getaddr(): Watch out for empty addresses that can happen when something like "MAIL FROM:<CR>" is received. This avoids the IndexError and rightly returns an SMTP syntax error.
* backport 1.33:Anthony Baxter2001-12-051-1/+1
| | | | | | Be more permissive in what is accepted as an attribute name; this makes this module slightly more resiliant in the face of XHTML input, or just colons in attribute names.
* backport 1.23:Anthony Baxter2001-12-051-5/+6
| | | | | | | | SF bug #473525 pyclbr broken As the comments in the module implied, pyclbr was easily confused by "strange stuff" inside single- (but not triple-) quoted strings. It isn't anymore. Its behavior remains flaky in the presence of nested functions and classes, though.
* backport 1.18: Patch #416220: Fix misplaced paren.Anthony Baxter2001-12-051-1/+1
|
* backport 1.29: Typo fix (spelling mistake in error message).Anthony Baxter2001-12-051-1/+1
|
* backport of 1.21Anthony Baxter2001-12-051-0/+6
| | | | | | SF bug [#473864] doctest expects spurios space. Repair unlikely surprise due to magical softspace attr and the use of print with a trailing comma in doctest examples.
* backport of 1.64, 1.65, 1.68:Anthony Baxter2001-12-051-8/+26
| | | | | | | | 1.64: Solve SF bug #231249: cgi.py opens too many (temporary) files. 1.65: Fix a denial-of-service attack, SF bug #443120. 1.68: "ib" should be "boundary"; reported by Neal Norwitz. the first two of these are pretty severe bugs.
* backport 1.18, 1.19, 1.20:Anthony Baxter2001-12-051-7/+8
| | | | | | | | | | | | | | | -- Apply two small changes to the Windows code, according to SF bug #427345. These are supposed to support binary data and avoid buffering problems on Windows. -- SF patch #467430. - replace some log_error() calls with log_message() - flush self.rfile before forking too (hope this works on Windows) -- Fix two typos, one noted by Noah Spurrier in SF bug #475166, the second noted after a second's thought about what the next line should do. :-(
* backport of 1.12Anthony Baxter2001-12-051-10/+6
| | | | | | check in for patch #430846 use faster code for base64.encodestring (courtesy of Mr. Tim Peters) and for base64.decodestring (courtesy of Anthony Baxter)
* backport 1.11Anthony Baxter2001-12-051-1/+1
| | | | Catch only the relevant exceptions instead of using a bare except clause.
* backport guido's 1.20 - test sktobj.sendall()Anthony Baxter2001-11-011-1/+1
| | | | needed this anyway.
* The 2.1 regrest.py doesn't have the test_main() feature yet, so alwaysGuido van Rossum2001-10-191-2/+1
| | | | call test_main() at the end.
* Merge in selected changes from profile.py on the trunk. Note thatGuido van Rossum2001-10-191-13/+30
| | | | | | | | | | this is *not* a simple-minded merge from the code on the trunk -- that does too much other stuff to be 100% safe for the 2.1.2 release (e.g. getting rid of HotProfile and OldProfile, changing some methods into global functions, a new calibration API). Add the test_profile.py module which verifies that the profiler works as expected.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-10-192-0/+103
| | | | 'release21-maint'.
* The version number 1.0.2pre doesn't conform to the strict versioningThomas Heller2001-10-191-1/+1
| | | | | | | | | guidelines in distutils/version, resulting in failure when trying to use distutils to install 4Suite (and perhaps other modules). Change it to 1.0.2. This finally really fixes Bug #417796.
* Just's fix in 1.10: call convert_path for scripts too. Needed for macJack Jansen2001-07-301-0/+2
| | | | | 2.1.1, and should do no harm to 2.1.2 (on the odd chance that will happen).
* Fix showstopper SF bug #442983: use of site.addsitedir() was brokenGuido van Rossum2001-07-201-1/+0
| | | | | | | | because it references the global dirs_in_sys_path which is deleted. The fix avoids deleting that global. (My email through python.org or digicool.com is non-functional at the moment; use gvanrossum@home.com to reach me.)
* Backport Piers Lauder's checkin 1.30:Thomas Wouters2001-07-201-1/+1
| | | | | | | fix missed conversion in ESR's string conversion This should be the *last* checkin in this branch, barring brown-bags, showstoppers and release cruft.
* Merge from the trunk... just contains bugfixes, according to Jack and Just.Thomas Wouters2001-07-191-2/+17
|
* Backport Jack's checkin 1.35 and Guido's checkin 1.36:Thomas Wouters2001-07-191-1/+5
| | | | | Made distutils understand the MacPython Carbon runtime model. Distutils will build for the runtime model you are currently using for the interpreter.
* Backport of AMK's checkin 1.34 and Guido's checkin 1.35:Thomas Wouters2001-07-191-4/+5
| | | | | [Bug #441527] Fixes for preprocessor support, contributed by Tarn Weisner Burton
* Backport Guido's checkin 1.3:Thomas Wouters2001-07-191-2/+2
| | | | | Should raise TestSkipped, not ImportError, when deciding to skip the test.
* Remove some false comments.Fred Drake2001-07-191-159/+156
| | | | | | Reorganize so the initialization sequences does not bite us in the foot. (There is no good reason to discard classes that clients may want to subclass.)
* this closes patches item 429136 and brings the release21-maint version intoSkip Montanaro2001-07-181-6/+9
| | | | sync with the head branch.
* Backport Tim's checkin 1.9:Thomas Wouters2001-07-121-4/+4
| | | | | SF bug 418615: regular expression bug in pipes.py. Obviously bad regexps, spotted by Jeffery Collins.
* Backport of the socketserver test, including output file (which is stillThomas Wouters2001-07-111-0/+1
| | | | | | | | | | necessary in the 2.1 branch.) Guido's original checkin message: A test suite for SocketServer.py that exposes the various bugs just fixed. Regrettably, this must be run manually -- somehow the I/O redirection of the regression test breaks the test. When run under the regression test, this raises ImportError with a warning to that effect.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-07-111-0/+162
| | | | 'release21-maint'.
* Backport of Guido's checkin 1.25:Thomas Wouters2001-07-111-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix various serious problems: - The ThreadingTCPServer class and its derived classes were completely broken because the main thread would close the request before the handler thread had time to look at it. This was introduced by Ping's close_request() patch. The fix moves the close_request() calls to after the handler has run to completion in the BaseServer class and the ForkingMixIn class; when using the ThreadingMixIn, closing the request is the handler's responsibility. - The ForkingUDPServer class has always been been broken because the socket was closed in the child before calling the handler. I fixed this by simply not calling server_close() in the child at all. - I cannot get the UnixDatagramServer class to work at all. The recvfrom() call doesn't return a meaningful client address. I added a comment to this effect. Maybe it works on other Unix versions. - The __all__ variable was missing ThreadingMixIn and ForkingMixIn. - Bumped __version__ to "0.4". - Added a note about the test suite (to be checked in shortly).
* Backport Tim's checkin 1.17:Thomas Wouters2001-07-111-1/+1
| | | | | | | | | SF patch #440144: Tests and minor bugfix for uu module decode(): While writing tests for uu.py, Nick Mathewson discovered that the 'Truncated input file' exception could never get raised, because its "if not str:" test was actually testing the builtin function "str", not the local string vrbl "s" as intended.
* When reading a continuation line, make sure we still use the transformedFred Drake2001-07-062-1/+9
| | | | | | | name when filling in the internal data structures, otherwise we incorrectly raise a KeyError. This fixes SF bug #432369.
* Allow underscores in tag names and quote characters in unquoted attributeFred Drake2001-07-051-2/+2
| | | | | | | values. The change for attribute values matches the way Mozilla and Navigator view the world, at least. This closes SF bug #436621.
* Only write out one blank line before the request data.Fred Drake2001-07-042-3/+3
| | | | This closes SF patch #419459.
* Avoid using os.path.normcase() on sys.path elements; doing so causes pathsFred Drake2001-07-021-19/+22
| | | | | | to be presented in an unfamiliar case on case-preserving filesystems. This closes SF patch #436173.