| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
--
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. :-(
|
| |
|
|
|
|
| |
check in for patch #430846
use faster code for base64.encodestring (courtesy of Mr. Tim Peters)
and for base64.decodestring (courtesy of Anthony Baxter)
|
| |
|
|
| |
Catch only the relevant exceptions instead of using a bare except clause.
|
| |
|
|
| |
needed this anyway.
|
| |
|
|
| |
call test_main() at the end.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
'release21-maint'.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
2.1.1, and should do no harm to 2.1.2 (on the odd chance that will
happen).
|
| |
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
| |
fix missed conversion in ESR's string conversion
This should be the *last* checkin in this branch, barring brown-bags,
showstoppers and release cruft.
|
| | |
|
| |
|
|
|
| |
Made distutils understand the MacPython Carbon runtime model. Distutils will
build for the runtime model you are currently using for the interpreter.
|
| |
|
|
|
| |
[Bug #441527] Fixes for preprocessor support, contributed by Tarn
Weisner Burton
|
| |
|
|
|
| |
Should raise TestSkipped, not ImportError, when deciding to skip the
test.
|
| |
|
|
|
|
| |
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.)
|
| |
|
|
| |
sync with the head branch.
|
| |
|
|
|
| |
SF bug 418615: regular expression bug in pipes.py.
Obviously bad regexps, spotted by Jeffery Collins.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
'release21-maint'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
name when filling in the internal data structures, otherwise we incorrectly
raise a KeyError.
This fixes SF bug #432369.
|
| |
|
|
|
|
|
| |
values. The change for attribute values matches the way Mozilla and
Navigator view the world, at least.
This closes SF bug #436621.
|
| |
|
|
| |
This closes SF patch #419459.
|
| |
|
|
|
|
| |
to be presented in an unfamiliar case on case-preserving filesystems.
This closes SF patch #436173.
|