| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Some IPv6-specific changes crept into the 2.1 branch when I backported
other bug fixes.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
The 2.1 maintenance branch is now identical to the trunk through rev
1.54 of httplib.py.
|
| |
|
|
|
|
|
|
|
|
| |
# 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.
|
| |
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
This fixes parseaddr() for the following RFC 2822 valid field:
To: User J. Person <person@dom.ain>
|
| |
|
|
| |
(The issues were re-numbered, not lost.)
|
| |
|
|
| |
See SF bug #551285.
|
| | |
|
| |
|
|
| |
not include 'True'. test_queue passes again.
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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__.
|
| |
|
|
| |
'release21-maint'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
| |
'release21-maint'.
|
| |
|
|
| |
We should get attributes from the right object.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
The purpose is to avoid regression on SF bug #529273.
This test is stronger than the one submitted with the bug report.
|
| |
|
|
|
| |
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.
|
| |
|
|
|
| |
argument incorrectly.
This closes SF bug #505997.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
os.system().
This closes Python bug #500401, Debian bug #127507.
|
| |
|
|
| |
backport patch #495358 rfc822.AddressList and "<>" address
|
| |
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
select not defensive. check for EINTR and make sure it's handled painlessly.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
"""
|
| |
|
|
|
| |
support for dylib - allow zlib included in OS to be
used rather than have to compile and install in /usr/local
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
--
Fix malformed line (PyChecker)
--
_os should be os; reported by Neal Norwitz.
--
|
| |
|
|
|
| |
Added missing parameter in call to http_error_default();
reported by Neal Norwitz.
|
| |
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
|
|
| |
--
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.)
--
|
| |
|
|
| |
Add 'sendall' to list of socket methods.
|
| |
|
|
|
| |
Amazing. This would open the sound file in text mode. Fixed.
SF bug #446219.
|
| |
|
|
|
|
| |
__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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| | |
|