summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Backport 1.60 -- because this is an annoyance that Zope folks run intoGuido van Rossum2003-02-131-1/+3
| | | | | | | and Zope 2.6 (which requires Python 2.1.x) isn't dead yet. Duh. The do_EOF() implementation was bogus. Make it more like do_quit() -- but print a blank line first.
* Roll back the introduction of urlsplit() and urlunsplit() toGuido van Rossum2003-01-092-51/+37
| | | | | | | | urlparse.py. These were new features in 2.2, and shouldn't be added to 2.1 this late in the game. There was one use of urlsplit() in httplib.py (the urlparse.py change was done as part of a backport of a bugfix to httplib.py); this use is replaced with a call to urlparse() without changing the effect (only the returned netloc is used).
* Backport (the relevant part of) rexec.py 1.41.Guido van Rossum2002-09-151-3/+3
| | | | | | | | | | | | | Address SF bug #577530: del __builtins__ breaks out of rexec Using the suggestion there: add_module() forces __builtin__ back; this fixes r_exec, r_eval, r_execfile. This does not mean that rexec is now considered safe! But for those willing to take the risk, it's safer than before. (Note that a safety analysis of the code module would be wise if you plan to use the interactive console for real -- I've only ever used it to play with restricted mode.)
* Backport:Guido van Rossum2002-09-041-5/+12
| | | | | | | | | | Fix for SF bug 601077 by Zack Weinberg. The new execvpe code would sometimes do the wrong thing when a non-executable file existed earlier in the path and an executable file of the same name existed later in the path. This patch restores the proper behavior (which is to execute the second file). When only a non-executable file exists, the correct error is still reported.
* Fix SF bug [ 599838 ] httplib.connect broken in 2.1 branchJeremy Hylton2002-08-291-19/+4
| | | | | Some IPv6-specific changes crept into the 2.1 branch when I backported other bug fixes.
* Backport of SF patch 590294: os._execvpe security fix (Zack Weinberg).Guido van Rossum2002-08-081-21/+6
| | | | | | | | | | | 1) Do not attempt to exec a file which does not exist just to find out what error the operating system returns. This is an exploitable race on all platforms that support symbolic links. 2) Immediately re-raise the exception if we get an error other than errno.ENOENT or errno.ENOTDIR. This may need to be adapted for other platforms.
* Add a dummy test_queue output file to make regrtest happy.Guido van Rossum2002-08-081-0/+1
|
* Update test output.Jeremy Hylton2002-07-121-0/+5
|
* Backport changes.Jeremy Hylton2002-07-122-69/+388
| | | | | | | | Change _begin() back to begin(). Fix for SF bug 579107. Fix for SF bug #432621: httplib: multiple Set-Cookie headers Fix SF bug #575360 Handle HTTP/0.9 responses.
* Backport various bug fixes from trunk.Jeremy Hylton2002-07-023-117/+246
| | | | | The 2.1 maintenance branch is now identical to the trunk through rev 1.54 of httplib.py.
* Add a special case code to deal with unexpected large files.Jeremy Hylton2002-06-181-1/+21
| | | | | | | | | | # On a Linux with large file support (LFS) using a Python without LFS, # stat() will raise EOVERFLOW. This unambiguously indicates that the # file exists because it only occurs when the size of the file can't # find into the stat struct. This change is only needed for Python 2.1, because LFS is automatically configured starting with Python 2.2.
* Backport to 2.1.x:Guido van Rossum2002-05-311-1/+11
| | | | | | | | | | SF bug 533625 (Armin Rigo). rexec: potential security hole If a rexec instance allows writing in the current directory (a common thing to do), there's a way to execute bogus bytecode. Fix this by not allowing imports from .pyc files (in a way that allows a site to configure things so that .pyc files *are* allowed, if writing is not allowed).
* Backport fix by tismer for #210682Neal Norwitz2002-05-291-11/+5
| | | | | | | | | | | | | | | fixed an old buglet that caused bdb to be unable to continue in the botframe, after a breakpoint was set. the key idea is not to set botframe to the bottom level frame, but its f_back, which actually might be None. Additional changes: migrated old exception trick to use sys._getframe(), which exists both in 2.1 and 2.2 . Note: I believe Mark Hammond needs to look over his code now. F5 correctly starts up in the debugger, but later on doesn't stop at a given breakpoint any longer. kind regards - chris
* Backport patch for revision 1.58 to the Py2.1.x maintenance branch.Barry Warsaw2002-05-032-105/+129
| | | | | | This fixes parseaddr() for the following RFC 2822 valid field: To: User J. Person <person@dom.ain>
* Update a SourceForge issue number; IDs less than 200000 are no longer valid.Fred Drake2002-05-021-1/+1
| | | | (The issues were re-numbered, not lost.)
* Added regression tests for xrange object attributes.Fred Drake2002-05-021-0/+21
| | | | See SF bug #551285.
* Backport buffer() tests from trunk to avoid regression failures.Fred Drake2002-05-022-0/+30
|
* *sigh* did a 'make test' in the wrong window. fixing this up toAnthony Baxter2002-04-232-12/+12
| | | | not include 'True'. test_queue passes again.
* backport mhammond's patch:Anthony Baxter2002-04-231-14/+33
| | | | | | | | | Fix bug 544473 - "Queue module can deadlock". Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate. Original patch(es): python/dist/src/Lib/Queue.py:1.15
* Backport fixes for two nested scopes bugs.Jeremy Hylton2002-04-202-7/+74
| | | | | | | | | | | | frameobject.c: make sure free and cell vars make it into locals, which makes eval work. bltinmodule.c & ceval.c: make sure a code object with free variables that is passed to exec or eval raises an exception. Also duplicate the current trunk test suite in the 2.1 branch, except for certain necessary changes: different warnings raised by 2.1, need for __future__.
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-04-191-0/+158
| | | | 'release21-maint'.
* backport gvanrossum's patch:Anthony Baxter2002-04-181-1/+1
| | | | | | | | | | | | | SF bug #543318 (Frank J. Tobin). In DatagramRequestHandler.setup(), the wfile initialization should be StringIO.StringIO(), not StringIO.StringIO(slf.packet). Bugfix candidate (all the way back to Python 1.5.2 :-). Original patches were: python/dist/src/Lib/SocketServer.py:1.31
* backport 1.47's "add sendall() to FakeSocket class"Anthony Baxter2002-04-091-0/+3
|
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-04-083-0/+67
| | | | 'release21-maint'.
* Not sure why the regression test missed this, but the PyXML tests caught it.Fred Drake2002-04-041-1/+1
| | | | We should get attributes from the right object.
* Avoid creating circular references between the ExpatParser and theFred Drake2002-04-041-1/+38
| | | | | | | ContentHandler. While GC will eventually clean up, it can take longer than normal for applications that create a lot of strings (or other immutables) rather without creating many containers. This closes SF bug #535474.
* Add a test that was added in Python 2.2: test Weak*Dictionary.setdefault().Fred Drake2002-03-131-0/+25
| | | | | The purpose is to avoid regression on SF bug #529273. This test is stronger than the one submitted with the bug report.
* Fix SF bug #529273: WeakValueDictionary.setdefault() raised UnboundLocalErrorFred Drake2002-03-131-4/+3
| | | | | since it used the name of a global function as the name of a local. The patch is almost identical to that submitted with the bug report.
* string.split() docstring described the interpretation of the maxsplitFred Drake2002-01-301-3/+3
| | | | | argument incorrectly. This closes SF bug #505997.
* 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
|