Vinay Sajip
ab41c109fa
Added entry about addition of _open() method to logging.FileHandler.
2007-01-09 14:51:36 +00:00
Vinay Sajip
825b75a053
Bug #1627575 : Added _open() method to FileHandler which can be used to reopen files. The FileHandler instance now saves the encoding (which can be None) in an attribute called "encoding".
2007-01-09 14:50:28 +00:00
Vinay Sajip
c9137263d5
Added entries about removal of some bare except clauses from logging.
2007-01-08 18:52:36 +00:00
Vinay Sajip
2cd79f6b78
Bare except clause removed from LogRecord.__init__. Now, only ValueError, TypeError and AttributeError are trapped.
...
(SF #411881 )
2007-01-08 18:51:46 +00:00
Vinay Sajip
c683a87ca6
Bare except clause removed from SMTPHandler.emit(). Now, only ImportError is trapped.
...
Bare except clause removed from SocketHandler.createSocket(). Now, only socket.error is trapped.
(SF #411881 )
2007-01-08 18:50:32 +00:00
Raymond Hettinger
51c2f6cd18
Fix zero-length corner case for iterating over a mutating deque.
2007-01-08 18:09:20 +00:00
Peter Astrand
1812f8cf3f
Avoid O(N**2) bottleneck in _communicate_(). Fixes #1598181 .
2007-01-07 14:34:16 +00:00
Peter Astrand
ec05a2d580
Re-implemented fix for #1531862 once again, in a way that works with Python 2.2. Fixes bug #1603424 .
2007-01-07 08:53:46 +00:00
Neal Norwitz
e8330fa2aa
Add Josiah to SF for maintaining asyncore/asynchat
2007-01-06 21:24:35 +00:00
Anthony Baxter
83955ef639
update to (c) years to include 2007
2007-01-06 04:45:54 +00:00
Raymond Hettinger
4bd97d4549
SF# 1409443: Expand comment to cover the interaction between f->f_lasti and the PREDICT macros.
2007-01-06 01:14:41 +00:00
Brett Cannon
d14ef77ae1
Silence a warning from gcc 4.0.1 by specifying a function's parameter list is
...
'void' instead of just a set of empty parentheses.
2007-01-05 21:45:09 +00:00
Andrew M. Kuchling
9c3a392321
[Patch #1520904 ] Fix bsddb tests to write to the temp directory instead of the Lib/bsddb/test directory
2007-01-05 15:51:24 +00:00
Andrew M. Kuchling
882680462c
[Bug #1622533 ] Make docstrings raw strings because they contain control characters (\0, \1)
2007-01-05 14:22:17 +00:00
Neal Norwitz
1f8c634a53
Add Collin Winter for access to update PEP 3107
2007-01-05 08:06:43 +00:00
Gregory P. Smith
d92d3c7197
typo fix
2007-01-05 07:21:35 +00:00
Neal Norwitz
72cd02c041
Prevent crash on shutdown which can occur if we are finalizing
...
and the module dict has been cleared already and some object
raises a warning (like in a __del__).
Will backport.
2007-01-05 05:25:22 +00:00
Gregory P. Smith
11a70c3c96
bump module version to match supported berkeleydb version
2007-01-05 02:06:17 +00:00
Gregory P. Smith
8b96a35d14
Support linking of the bsddb module against BerkeleyDB 4.5.x
...
(will backport to 2.5)
2007-01-05 01:59:42 +00:00
Martin v. Löwis
7b7c9d4208
Bug #1566280 : Explicitly invoke threading._shutdown from Py_Main,
...
to avoid relying on atexit.
Will backport to 2.5.
2007-01-04 21:06:12 +00:00
Raymond Hettinger
769a40a1d0
Fix stability of heapq's nlargest() and nsmallest().
2007-01-04 17:53:34 +00:00
Neal Norwitz
2dc4db0174
SF #1627373 , fix typo in CarbonEvt.
2007-01-04 06:25:31 +00:00
Brett Cannon
92d54d5e9c
Add EnvironmentVarGuard to test.test_support. Provides a context manager to
...
temporarily set or unset environment variables.
2007-01-04 00:23:49 +00:00
Raymond Hettinger
5399910eba
For sets with cyclical reprs, emit an ellipsis instead of infinitely recursing.
2006-12-30 04:01:17 +00:00
Neal Norwitz
a186ee22c0
SF bug #1623890 , fix argument name in docstring
2006-12-29 03:01:53 +00:00
Neal Norwitz
5dc29ac888
Remove a stray (old) macro name left around (I guess)
2006-12-28 04:39:20 +00:00
Lars Gustäbel
a7ba6fc548
Patch #1504073 : Fix tarfile.open() for mode "r" with a fileobj argument.
...
Will backport to 2.5.
2006-12-27 10:30:46 +00:00
Andrew M. Kuchling
7166232399
[Rest of patch #1182394 ] Add ._current() method so that we can use the written-in-C .hexdigest() method
2006-12-27 03:31:24 +00:00
Andrew M. Kuchling
a7ebb33975
[Part of patch #1182394 ] Move the HMAC blocksize to be a class-level
...
constant; this allows changing it in a subclass. To accommodate this,
copy() now uses __class__. Also add some text to a comment.
2006-12-27 03:25:31 +00:00
Lars Gustäbel
a4b2381b20
Patch #1262036 : Prevent TarFiles from being added to themselves under
...
certain conditions.
Will backport to 2.5.
2006-12-23 17:57:23 +00:00
Lars Gustäbel
6baa502769
Patch #1230446 : tarfile.py: fix ExFileObject so that read() and tell()
...
work correctly together with readline().
Will backport to 2.5.
2006-12-23 16:40:13 +00:00
Andrew M. Kuchling
55c54a2fa1
Frak; this test also fails
2006-12-22 21:48:19 +00:00
Andrew M. Kuchling
f2881e8315
Darn; this test works when you run test_pty.py directly, but fails when regrtest runs it (the os.read() raises os.error). I can't figure out the cause, so am commenting out the test.
2006-12-22 19:21:27 +00:00
Andrew M. Kuchling
4281902545
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
2006-12-22 19:06:16 +00:00
Andrew M. Kuchling
ee0e6d16b3
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
...
the master should close the slave fd.
Added a test to test_pty.py that reads from the master_fd after doing
a pty.fork(); without the fix it hangs forever instead of raising an
exception. (<crossing fingers for the buildbots>)
2.5 backport candidate.
2006-12-22 18:41:42 +00:00
Andrew M. Kuchling
3fa5e6ee45
[Bug #776202 ] Apply Walter Doerwald's patch to use text mode for encoded files
2006-12-22 16:43:26 +00:00
Andrew M. Kuchling
9ef0ef5b72
[Bug #802128 continued] Modify mode depending on the process umask.
...
Is there really no other way to read the umask than to set it?
Hope this works on Windows...
2006-12-22 15:16:58 +00:00
Andrew M. Kuchling
dc26758ffe
[Bug #802128 ] Make the mode argument of dumbdbm actually work the way it's
...
described, and add a test for it.
2.5 bugfix candidate, maybe; arguably this patch changes the API of
dumbdbm and shouldn't be added in a point-release.
2006-12-22 15:04:45 +00:00
Andrew M. Kuchling
b29069d6b6
[Bug #737202 ; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories
2006-12-22 13:25:02 +00:00
Andrew M. Kuchling
eabc0e87af
Typo fix
2006-12-22 00:50:56 +00:00
Thomas Heller
d5624cf6c9
Fix wrong markup of an argument in a method signature.
...
Will backport.
2006-12-21 18:30:56 +00:00
Walter Dörwald
fd7e162eb9
Fix typo.
2006-12-21 18:06:30 +00:00
Andrew M. Kuchling
4a8d272dca
Mention the os.SEEK_* constants
2006-12-21 13:40:29 +00:00
Neal Norwitz
b6060dbed1
Lars asked for permission on on python-dev for work on tarfile.py
2006-12-21 04:38:00 +00:00
Andrew M. Kuchling
2dd7c8c41e
[Bug #1619680 ] in_dll() arguments are documented in the wrong order
2006-12-20 20:20:42 +00:00
Andrew M. Kuchling
a490d59fbb
Some other built-in functions are described with 'sequence' arguments
...
that should really be 'iterable'; this commit changes them.
Did I miss any? Did I introduce any errors?
2006-12-20 20:11:12 +00:00
Andrew M. Kuchling
b688573766
Two grammar fixes
2006-12-20 19:58:11 +00:00
Andrew M. Kuchling
1be2ac9cd6
[Bug #1619674 ] Make sum() use the term iterable, not sequence
2006-12-20 19:57:10 +00:00
Andrew M. Kuchling
eca4c31267
[Apply length-checking.diff from bug #1599254 ]
...
Add length checking to single-file mailbox formats: before doing a
flush() on a mailbox, seek to the end and verify its length is
unchanged, raising ExternalClashError if the file's length has
changed.
This fix avoids potential data loss if some other process appends to
the mailbox file after the table of contents has been generated;
instead of overwriting the modified file, you'll get the exception.
I also noticed that the self._lookup() call in self.flush() wasn't
necessary (everything that sets self._pending to True also calls
self.lookup()), and replaced it by an assertion.
2.5 backport candidate.
2006-12-20 19:48:20 +00:00
Georg Brandl
ded1c4df0b
Testcase for patch #1484695 .
2006-12-20 11:55:16 +00:00