]>
granicus.if.org Git - python/log
Vinay Sajip [Wed, 23 Jan 2013 09:31:19 +0000 (09:31 +0000)]
Corrected typo, added comment in cookbook recipe.
Ezio Melotti [Tue, 22 Jan 2013 20:47:57 +0000 (22:47 +0200)]
#11379: rephrase minidom documentation to use the term "minimal" instead of "lightweight". Patch by Éric Araujo.
Vinay Sajip [Tue, 22 Jan 2013 15:57:39 +0000 (15:57 +0000)]
Added cookbook recipe for structured logging.
Serhiy Storchaka [Tue, 22 Jan 2013 15:01:59 +0000 (17:01 +0200)]
Issue #
1159051 : GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
Added tests for reading truncated gzip and bzip2 files.
Serhiy Storchaka [Tue, 22 Jan 2013 13:54:48 +0000 (15:54 +0200)]
#15546: Fix GzipFile.peek()'s handling of pathological input data.
This is a backport of changeset
8c07ff7f882f .
Vinay Sajip [Tue, 22 Jan 2013 13:12:34 +0000 (13:12 +0000)]
Updated logging HOWTO with a diagram.
Vinay Sajip [Mon, 21 Jan 2013 21:57:10 +0000 (21:57 +0000)]
Issue #17007: Made minor changes to documentation wording.
Vinay Sajip [Mon, 21 Jan 2013 19:44:28 +0000 (19:44 +0000)]
Issue #17007: Improved logging documentation based on suggestions in the issue.
Serhiy Storchaka [Mon, 21 Jan 2013 18:23:58 +0000 (20:23 +0200)]
Add bigmemtest decorator to test of issue #16335.
Serhiy Storchaka [Mon, 21 Jan 2013 10:59:13 +0000 (12:59 +0200)]
Fix memory error in test_ucn.
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335.
Serhiy Storchaka [Mon, 21 Jan 2013 09:38:00 +0000 (11:38 +0200)]
Issue #16335: Fix integer overflow in unicode-escape decoder.
Ezio Melotti [Sun, 20 Jan 2013 10:16:03 +0000 (12:16 +0200)]
#4153: update the Unicode howto.
Ezio Melotti [Sat, 19 Jan 2013 17:50:34 +0000 (19:50 +0200)]
Fix a few typos in Misc/NEWS.
Charles-François Natali [Sat, 19 Jan 2013 11:19:10 +0000 (12:19 +0100)]
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
Serhiy Storchaka [Sat, 19 Jan 2013 10:26:26 +0000 (12:26 +0200)]
Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets
13e2e44db99d and
525407d89277 .
Ezio Melotti [Fri, 18 Jan 2013 17:55:46 +0000 (19:55 +0200)]
#16978: rephrase sentence and fix typo. Initial patch by Tshepang Lekhonkhobe.
Łukasz Langa [Fri, 18 Jan 2013 12:40:43 +0000 (13:40 +0100)]
math.fsum docs did not show up because of a misplaced testsetup directive
Antoine Pitrou [Thu, 17 Jan 2013 22:08:03 +0000 (23:08 +0100)]
Remove outdated statement
Frank Wierzbicki [Wed, 16 Jan 2013 21:55:12 +0000 (13:55 -0800)]
Closed #16886: test_dictcomps no longer depends on dict order
Vinay Sajip [Tue, 15 Jan 2013 17:55:57 +0000 (17:55 +0000)]
Issue #9501: Improved shutdown handling to deal with module attributes correctly.
Serhiy Storchaka [Tue, 15 Jan 2013 15:56:08 +0000 (17:56 +0200)]
Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
Serhiy Storchaka [Tue, 15 Jan 2013 13:32:59 +0000 (15:32 +0200)]
Merge heads
Richard Oudkerk [Tue, 15 Jan 2013 13:19:24 +0000 (13:19 +0000)]
Issue #10527: Remove dead code
Serhiy Storchaka [Tue, 15 Jan 2013 12:43:21 +0000 (14:43 +0200)]
Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
Richard Oudkerk [Tue, 15 Jan 2013 01:01:01 +0000 (01:01 +0000)]
Issue #10527: Use poll() instead of select() for multiprocessing pipes
Serhiy Storchaka [Mon, 14 Jan 2013 22:31:39 +0000 (00:31 +0200)]
Issue #9720: zipfile now writes correct local headers for files larger than 4 GiB.
Serhiy Storchaka [Sun, 13 Jan 2013 19:58:04 +0000 (21:58 +0200)]
Describe the default_namespace parameter of ElemetTree.write.
Eli Bendersky [Sun, 13 Jan 2013 13:22:05 +0000 (05:22 -0800)]
Issue #16922: fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
Patch by Serhiy Storchaka.
Charles-François Natali [Sun, 13 Jan 2013 12:56:52 +0000 (13:56 +0100)]
test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
Serhiy Storchaka [Sat, 12 Jan 2013 16:13:24 +0000 (18:13 +0200)]
Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.
Charles-François Natali [Sat, 12 Jan 2013 15:52:20 +0000 (16:52 +0100)]
Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.
Ezio Melotti [Sat, 12 Jan 2013 08:39:45 +0000 (10:39 +0200)]
#16940: fix indentation in example.
Chris Jerdonek [Sat, 12 Jan 2013 03:26:44 +0000 (19:26 -0800)]
Issue #16933 (2.7 forward-port): Improve choices examples in argparse docs.
Serhiy Storchaka [Fri, 11 Jan 2013 20:18:17 +0000 (22:18 +0200)]
Issue #15539: Fix a backup file creation in pindent.py on Windows.
Ezio Melotti [Fri, 11 Jan 2013 12:07:47 +0000 (14:07 +0200)]
Add a note about checking refleaks to patchcheck.
Serhiy Storchaka [Fri, 11 Jan 2013 10:28:53 +0000 (12:28 +0200)]
Merge heads
Serhiy Storchaka [Fri, 11 Jan 2013 10:04:23 +0000 (12:04 +0200)]
Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
Sandro Tosi [Fri, 11 Jan 2013 09:49:00 +0000 (10:49 +0100)]
grammatical fix; thanks to Alex Rudnick from docs@
Ezio Melotti [Fri, 11 Jan 2013 07:09:07 +0000 (09:09 +0200)]
#16154: fix some doctests in Doc/library. Patch by Ravi Sinha.
Chris Jerdonek [Fri, 11 Jan 2013 07:01:27 +0000 (23:01 -0800)]
Issue #16874 (forward-port from 2.7): fix some documentation formatting.
Ezio Melotti [Fri, 11 Jan 2013 06:32:01 +0000 (08:32 +0200)]
#13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett.
Ezio Melotti [Fri, 11 Jan 2013 03:54:57 +0000 (05:54 +0200)]
Enable a broken test and fix it.
R David Murray [Fri, 11 Jan 2013 01:18:21 +0000 (20:18 -0500)]
#13934: document sqlite version strings, use correct one in test.
R David Murray [Thu, 10 Jan 2013 16:04:09 +0000 (11:04 -0500)]
#15545: fix sqlite3.iterdump regression on unsortable row_factory objects.
The fix for issue 9750 introduced a regression by sorting the row objects
returned by fetchall. But if a row_factory such as sqlite3.Row is used, the
rows may not be sortable (in Python3), which leads to an exception. The
sorting is still a nice idea, so the patch moves the sort into the sql.
Fix and test by Peter Otten.
Serhiy Storchaka [Wed, 9 Jan 2013 10:21:57 +0000 (12:21 +0200)]
Issue #16491: IDLE now prints chained exception tracebacks.
Serhiy Storchaka [Tue, 8 Jan 2013 21:14:24 +0000 (23:14 +0200)]
Issue #11461: Fix the incremental UTF-16 decoder. Original patch by
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
Serhiy Storchaka [Tue, 8 Jan 2013 20:45:42 +0000 (22:45 +0200)]
Fix out of bound read in UTF-32 decoder on "narrow Unicode" builds.
Charles-François Natali [Tue, 8 Jan 2013 18:49:42 +0000 (19:49 +0100)]
Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
Vinay Sajip [Tue, 8 Jan 2013 11:25:42 +0000 (11:25 +0000)]
Issue #16884: Updated docs to use 'note' directives in a couple of places missed earlier.
Serhiy Storchaka [Tue, 8 Jan 2013 09:32:58 +0000 (11:32 +0200)]
Issue #15845: Fix comparison between bytes and string.
Vinay Sajip [Mon, 7 Jan 2013 14:16:52 +0000 (14:16 +0000)]
Issue #16884: updated logging documentation to include lastResort and use 'note' directives where appropriate.
R David Murray [Sun, 6 Jan 2013 21:13:10 +0000 (16:13 -0500)]
#16877: Add mention that shell-style path expansions are not automatic.
Ezio Melotti [Sat, 5 Jan 2013 05:37:47 +0000 (07:37 +0200)]
#16862: remove outdated statements about Stackless.
Ezio Melotti [Sat, 5 Jan 2013 05:36:54 +0000 (07:36 +0200)]
Cleanup a few minor things.
Ezio Melotti [Sat, 5 Jan 2013 04:53:27 +0000 (06:53 +0200)]
Fix example by making the exception inherit from Exception.
Ezio Melotti [Fri, 4 Jan 2013 22:50:46 +0000 (00:50 +0200)]
#13094: add Programming FAQ entry about the behavior of closures.
Benjamin Peterson [Fri, 4 Jan 2013 04:34:40 +0000 (20:34 -0800)]
merge heads
Benjamin Peterson [Fri, 4 Jan 2013 04:34:19 +0000 (20:34 -0800)]
drop email (closes #16857)
Victor Stinner [Thu, 3 Jan 2013 02:33:21 +0000 (03:33 +0100)]
Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB
Giampaolo Rodola' [Thu, 3 Jan 2013 01:54:27 +0000 (02:54 +0100)]
issue 10527: fix missing import
Victor Stinner [Thu, 3 Jan 2013 00:50:30 +0000 (01:50 +0100)]
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
Victor Stinner [Thu, 3 Jan 2013 00:08:58 +0000 (01:08 +0100)]
Issue #16455: On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
Nadeem Vawda [Wed, 2 Jan 2013 22:02:00 +0000 (23:02 +0100)]
Issue #16828: Fix error incorrectly raised by bz2.compress('').
Patch by Martin Packman.
Ezio Melotti [Wed, 2 Jan 2013 20:29:09 +0000 (22:29 +0200)]
#16747: fix link to file objects in the glossary.
Eli Bendersky [Wed, 2 Jan 2013 13:53:59 +0000 (05:53 -0800)]
Fix method name in documentation (__setstate__ --> __getstate__)
Serhiy Storchaka [Wed, 2 Jan 2013 09:57:22 +0000 (11:57 +0200)]
Fix incorrect grammar in Misc/NEWS.
Serhiy Storchaka [Wed, 2 Jan 2013 08:32:13 +0000 (10:32 +0200)]
Merge heads
Łukasz Langa [Tue, 1 Jan 2013 23:44:36 +0000 (00:44 +0100)]
Misc/NEWS updated to tell about #16820
Łukasz Langa [Tue, 1 Jan 2013 22:45:33 +0000 (23:45 +0100)]
configparser: preserve section order when using `__setitem__` (issue #16820)
Victor Stinner [Tue, 1 Jan 2013 22:05:55 +0000 (23:05 +0100)]
Issue #9644: Fix the encoding used by os.statvfs(): use the filesystem encoding
with the surrogateescape error handler, instead of UTF-8 in strict mode.
Serhiy Storchaka [Tue, 1 Jan 2013 22:03:58 +0000 (00:03 +0200)]
Issue #16541: tk_setPalette() now works with keyword arguments.
Added a test for tk_setPalette().
Serhiy Storchaka [Tue, 1 Jan 2013 20:25:59 +0000 (22:25 +0200)]
Issue #16819: IDLE method completion now correctly works for bytes literals.
Ned Deily [Tue, 1 Jan 2013 20:07:15 +0000 (12:07 -0800)]
Update copyright dates in Mac plists.
Richard Oudkerk [Tue, 1 Jan 2013 17:29:44 +0000 (17:29 +0000)]
Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.
Giampaolo Rodola' [Mon, 31 Dec 2012 16:23:09 +0000 (17:23 +0100)]
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
Łukasz Langa [Mon, 31 Dec 2012 02:40:36 +0000 (03:40 +0100)]
added Wolfgang Scherer to acknowledgements
Łukasz Langa [Mon, 31 Dec 2012 02:38:39 +0000 (03:38 +0100)]
Fixes `parser.clean()` reported in issue #16820.
Łukasz Langa [Mon, 31 Dec 2012 01:18:20 +0000 (02:18 +0100)]
Fixes issue #15803: incorrect `ConfigParser.items()` docstring
Serhiy Storchaka [Sun, 30 Dec 2012 18:16:30 +0000 (20:16 +0200)]
Issue #16645: Fix hardlink extracting test for tarfile.
Andrew Svetlov [Sat, 29 Dec 2012 21:07:50 +0000 (23:07 +0200)]
Fix docstring in curses (#16782)
Serhiy Storchaka [Sat, 29 Dec 2012 20:30:56 +0000 (22:30 +0200)]
Issue #16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file.
Antoine Pitrou [Fri, 28 Dec 2012 18:07:43 +0000 (19:07 +0100)]
Forward port new test for SSLSocket.connect_ex()
Antoine Pitrou [Fri, 28 Dec 2012 18:03:43 +0000 (19:03 +0100)]
Backport Python 3.2 fix for issue #12065, and add another test for SSLSocket.connect_ex().
Serhiy Storchaka [Fri, 28 Dec 2012 08:16:47 +0000 (10:16 +0200)]
Merge heads
Raymond Hettinger [Fri, 28 Dec 2012 08:03:30 +0000 (00:03 -0800)]
Make the from_iterable() recipe more usable.
The code isn't exactly equivalent because a classmethod would
only make sense inside a chain class, and it would need "cls"
as a first argument, and it would need to return an instance
of "chain" rather than a generator.
The updated example drops the @classmethod decorator so that
it can be used standalone: list(from_iterable(['abc', 'def']))
This should be communicate what from_iterable does.
Serhiy Storchaka [Fri, 28 Dec 2012 07:42:11 +0000 (09:42 +0200)]
Issue #16761: Raise TypeError when int() called with base argument only.
Serhiy Storchaka [Fri, 28 Dec 2012 07:31:59 +0000 (09:31 +0200)]
Issue #16761: Raise TypeError when int() or long() called with base argument only.
Chris Jerdonek [Fri, 28 Dec 2012 02:16:32 +0000 (18:16 -0800)]
Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize.
Chris Jerdonek [Fri, 28 Dec 2012 02:14:01 +0000 (18:14 -0800)]
Issue #15324: Fix regrtest parsing of --fromfile and --randomize options.
Ezio Melotti [Thu, 27 Dec 2012 23:59:24 +0000 (01:59 +0200)]
#16796: fix typo. Patch by Michael Schurter.
Ezio Melotti [Thu, 27 Dec 2012 23:59:24 +0000 (01:59 +0200)]
#16796: fix typo. Patch by Michael Schurter.
Serhiy Storchaka [Thu, 27 Dec 2012 22:44:20 +0000 (00:44 +0200)]
Issue #16792: Use assertIs() to test identity.
Serhiy Storchaka [Thu, 27 Dec 2012 22:32:19 +0000 (00:32 +0200)]
Issue #16793. Replace deprecated unittest asserts with modern counterparts.
Serhiy Storchaka [Thu, 27 Dec 2012 21:57:00 +0000 (23:57 +0200)]
Issue #16792: Mark small ints test as CPython-only.
Serhiy Storchaka [Thu, 27 Dec 2012 21:07:00 +0000 (23:07 +0200)]
Issue #16792: Mark small ints test as CPython-only.
Chris Jerdonek [Thu, 27 Dec 2012 20:53:29 +0000 (12:53 -0800)]
Issue #16790: add some of the recent issue #16045 int tests to test_long.
This patch also provides a simple way to share tests going forward
between test_int and test_long.
Brian Curtin [Thu, 27 Dec 2012 20:37:06 +0000 (14:37 -0600)]
Fix #16759. Convert DWORD registry values using unsigned long.
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
Brian Curtin [Thu, 27 Dec 2012 20:12:43 +0000 (14:12 -0600)]
Merge
Brian Curtin [Thu, 27 Dec 2012 20:04:42 +0000 (14:04 -0600)]
Fix #16759. Convert DWORD registry values using PyLong_FromUnsignedLong.
When converting REG_DWORD registry values into Python ints, the conversion
needs to be made from an *unsigned* long to match the DWORD type.
Serhiy Storchaka [Thu, 27 Dec 2012 20:00:12 +0000 (22:00 +0200)]
Null merge.