]>
granicus.if.org Git - python/log
R. David Murray [Tue, 28 Dec 2010 18:54:13 +0000 (18:54 +0000)]
#9824: encode , and ; in cookie values so that browsers don't split on them
There is a small chance of backward incompatibility here, but only for
non-SimpleCookie applications reading SimpleCookie generated cookies. Even
then, any such ap is likely to be handling escaped values already, and it would
take a fairly perverse implementation of unescaping to fail to unescape these
newly escaped chars, so the risk seems minimal.
Georg Brandl [Tue, 28 Dec 2010 18:30:18 +0000 (18:30 +0000)]
Add sys.flags.quiet attribute for the new -q option, as noted missing by Eric in #
1772833 .
Brian Curtin [Tue, 28 Dec 2010 17:12:43 +0000 (17:12 +0000)]
This file was obsolted by a number of adjustments to the os.symlink tests
on Windows, and is no longer needed by any tests or Lib/test/support.py
Brian Curtin [Tue, 28 Dec 2010 17:08:22 +0000 (17:08 +0000)]
Minor doc update for #9333. Took out the phrasing about os.symlink not
existing and mentioned the OSError possibility.
Senthil Kumaran [Tue, 28 Dec 2010 15:55:16 +0000 (15:55 +0000)]
Fix Issue10759 - html.parser.unescape() fails on HTML entities with incorrect syntax
Brian Curtin [Tue, 28 Dec 2010 14:31:47 +0000 (14:31 +0000)]
Fix #9333. The symlink function is always available now, raising OSError
when the user doesn't hold the symbolic link privilege rather than hiding it.
Victor Stinner [Tue, 28 Dec 2010 13:33:43 +0000 (13:33 +0000)]
Issue #10783: Fix test_sys, pack('c', ' ') => pack('c', b' ')
Victor Stinner [Tue, 28 Dec 2010 13:26:42 +0000 (13:26 +0000)]
Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8
* Replace "bytes" by "bytes object" in struct error messages
* Document the API change in What's new in Python 3.2
* Fix test_wave
* Remove also ugly implicit conversions in test_struct
Georg Brandl [Tue, 28 Dec 2010 11:53:25 +0000 (11:53 +0000)]
#10609: fix non-working dbm example.
Georg Brandl [Tue, 28 Dec 2010 11:49:41 +0000 (11:49 +0000)]
#10739: document that on Windows, socket.makefile() does not make a file that has a true file descriptor usable where such a thing is expected.
Georg Brandl [Tue, 28 Dec 2010 11:48:53 +0000 (11:48 +0000)]
Rewrap.
Georg Brandl [Tue, 28 Dec 2010 11:38:12 +0000 (11:38 +0000)]
Remove history; adapt a bit more to reST, since this will once be part of the dev guide.
Georg Brandl [Tue, 28 Dec 2010 11:15:49 +0000 (11:15 +0000)]
#10781: clarify that *encoding* is not a parameter for Node objects in general.
Georg Brandl [Tue, 28 Dec 2010 11:08:17 +0000 (11:08 +0000)]
#10742: document readonly attribute of memoryviews.
Georg Brandl [Tue, 28 Dec 2010 11:06:07 +0000 (11:06 +0000)]
#10767: update README in crashers; not all may have a bug entry and/or be fixed.
Victor Stinner [Tue, 28 Dec 2010 11:02:46 +0000 (11:02 +0000)]
Issue #9738: Fix typo, ASCII-encoding string => ASCII-encoded string
Georg Brandl [Tue, 28 Dec 2010 11:02:12 +0000 (11:02 +0000)]
Add news entry and clarify another.
Georg Brandl [Tue, 28 Dec 2010 10:56:20 +0000 (10:56 +0000)]
#10768: fix ScrolledText widget construction, and make the example work from the interactive shell.
Georg Brandl [Tue, 28 Dec 2010 10:38:33 +0000 (10:38 +0000)]
#10777: fix iteration over dict keys while mutating the dict.
Georg Brandl [Tue, 28 Dec 2010 09:51:43 +0000 (09:51 +0000)]
#10679: install idle, pydoc, 2to3 scripts with X.Y suffix for make altinstall; create symlinks for make install.
Georg Brandl [Tue, 28 Dec 2010 09:29:19 +0000 (09:29 +0000)]
Fix advice: call PyType_Ready to fill in ob_type of custom types.
Georg Brandl [Tue, 28 Dec 2010 09:18:24 +0000 (09:18 +0000)]
Remove confusing paragraph -- this is relevant only to advanced users anyway and does not belong into the tutorial.
Georg Brandl [Tue, 28 Dec 2010 09:16:12 +0000 (09:16 +0000)]
Replace sys.maxint mention by sys.maxsize.
Victor Stinner [Tue, 28 Dec 2010 00:59:03 +0000 (00:59 +0000)]
Issue #10780: Remove commas at the end of the argument list
Forbidden in C, stupid language!
Victor Stinner [Tue, 28 Dec 2010 00:59:02 +0000 (00:59 +0000)]
Issue #8966: Remove the documentation of ctypes.set_conversion_mode()
Function removed by r83195.
Victor Stinner [Tue, 28 Dec 2010 00:28:21 +0000 (00:28 +0000)]
Issue #10780: PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the
filesystem encoding instead of UTF-8.
Victor Stinner [Mon, 27 Dec 2010 20:12:13 +0000 (20:12 +0000)]
Issue #10778: decoding_fgets() decodes the filename from the filesystem
encoding instead of UTF-8.
Victor Stinner [Mon, 27 Dec 2010 20:10:36 +0000 (20:10 +0000)]
Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem
encoding instead of UTF-8.
R. David Murray [Mon, 27 Dec 2010 20:09:32 +0000 (20:09 +0000)]
#7056: runtest and runtest_inner don't use testdir, so drop it from their sigs
I've only tested regular runs and -j runs. If I've broken anything
else I'm sure I'll hear about it sooner or later.
Vinay Sajip [Mon, 27 Dec 2010 18:34:25 +0000 (18:34 +0000)]
Issue #10626: test_logging now preserves logger disabled states.
Vinay Sajip [Mon, 27 Dec 2010 14:31:52 +0000 (14:31 +0000)]
Issue #10626: test_logging now preserves logger disabled states.
Vinay Sajip [Mon, 27 Dec 2010 11:18:52 +0000 (11:18 +0000)]
Issue #10774: test_logging now removes temp files created during tests.
R. David Murray [Mon, 27 Dec 2010 04:31:48 +0000 (04:31 +0000)]
Skip test that does not raise an error on Windows.
I'm assuming that the putative path from the malformed
pth file is simply not found and therefore ignored.
Victor Stinner [Mon, 27 Dec 2010 02:39:20 +0000 (02:39 +0000)]
Issue #9738: Ooops, fix typos in my previous commit (r87506)
Victor Stinner [Mon, 27 Dec 2010 01:49:31 +0000 (01:49 +0000)]
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Victor Stinner [Mon, 27 Dec 2010 01:49:29 +0000 (01:49 +0000)]
Issue #9738: document encodings of unicode functions
Victor Stinner [Mon, 27 Dec 2010 01:49:26 +0000 (01:49 +0000)]
Issue #9738: Document encodings of error and warning functions
R. David Murray [Mon, 27 Dec 2010 00:03:13 +0000 (00:03 +0000)]
Escape file path before searching for it in output via regex
Vinay Sajip [Sun, 26 Dec 2010 21:22:33 +0000 (21:22 +0000)]
Added logging documentation cross-references.
R. David Murray [Sun, 26 Dec 2010 19:54:29 +0000 (19:54 +0000)]
#5258/#10642: print fn, line, traceback and continue when .pth file is broken
If a .pth file contained an error, it could cause a traceback in site.py,
terminating its processing. In 2.7 and 3.2, the interpreter will then not
start. Previously, a message would print saying to use -v to get the
traceback. In either case, the traceback generated for a failed .pth file did
not include the .pth filename, making it difficult to debug the problem. Now
site.py reports not only the .pth filename but also the line number causing the
error, and just skips the remainder of the file.
Vinay Sajip [Sun, 26 Dec 2010 18:47:51 +0000 (18:47 +0000)]
Improved logging cookbook for logging with multiprocessing.
Éric Araujo [Sun, 26 Dec 2010 17:53:27 +0000 (17:53 +0000)]
Fix typo (#10770)
Terry Reedy [Sun, 26 Dec 2010 03:48:35 +0000 (03:48 +0000)]
revert 87478
Éric Araujo [Sun, 26 Dec 2010 02:38:05 +0000 (02:38 +0000)]
Remove unexistent parameter (#3216)
Éric Araujo [Sun, 26 Dec 2010 02:18:49 +0000 (02:18 +0000)]
Fix typo spotted by Rodrigo Bernardo Pimentel (#9891)
Victor Stinner [Sat, 25 Dec 2010 22:40:32 +0000 (22:40 +0000)]
Issue #10763: subprocess.communicate() closes stdout and stderr if both are
pipes (bug specific to Windows).
Improve also the unit test: write a portable unit test.
Brian Quinlan [Sat, 25 Dec 2010 00:18:27 +0000 (00:18 +0000)]
Assign closed handles to None to make errors more obvious if they are used.
Brian Quinlan [Fri, 24 Dec 2010 23:10:41 +0000 (23:10 +0000)]
Better reporting of test failures on Windows.
R. David Murray [Fri, 24 Dec 2010 22:36:49 +0000 (22:36 +0000)]
#
1693546 : don't add quotes around RFC 2231 encoded values.
The RFC is bit hard to understand on this point, but the examples
clearly show that parameter values that are encoded according
to its charset/language rules don't have surrounding quotes, and
the ABNF does not allow for quotes. So when we produce such
encoded values, we no longer add quotes.
Terry Reedy [Fri, 24 Dec 2010 21:59:03 +0000 (21:59 +0000)]
Match current tracker name, though I do not know if still active.
Raymond Hettinger [Fri, 24 Dec 2010 21:51:48 +0000 (21:51 +0000)]
Adopt symmetric names for arguments (actual/expected --> first/second).
Vinay Sajip [Fri, 24 Dec 2010 12:03:48 +0000 (12:03 +0000)]
Logging documentation updates.
Raymond Hettinger [Fri, 24 Dec 2010 11:24:00 +0000 (11:24 +0000)]
Keep helper functions private.
Raymond Hettinger [Fri, 24 Dec 2010 11:20:30 +0000 (11:20 +0000)]
Put diff output in useful order (when the elements were first seen).
Raymond Hettinger [Fri, 24 Dec 2010 10:30:06 +0000 (10:30 +0000)]
Add direct tests for the util functions.
Raymond Hettinger [Fri, 24 Dec 2010 10:04:00 +0000 (10:04 +0000)]
Add news entry for 87471.
Raymond Hettinger [Fri, 24 Dec 2010 10:02:22 +0000 (10:02 +0000)]
Improve diff for assertCountEqual() to actually show the differing counts.
New output looks like this:
Traceback (most recent call last):
File "test.py", line 5, in test_ce
self.assertCountEqual('abracadabra xx', 'simsalabim xx')
AssertionError: Element counts were not equal:
Expected 5, got 2: 'a'
Expected 2, got 1: 'b'
Expected 0, got 2: 'i'
Expected 0, got 2: 'm'
Expected 0, got 1: 'l'
Expected 0, got 2: 's'
Expected 1, got 0: 'c'
Expected 1, got 0: 'd'
Expected 2, got 0: 'r'
Alexander Belopolsky [Fri, 24 Dec 2010 04:22:40 +0000 (04:22 +0000)]
Added an XXX note to describe timedelta/timedelta feature.
Senthil Kumaran [Fri, 24 Dec 2010 04:03:59 +0000 (04:03 +0000)]
Fix some mistakes- Issue3243 (r87399) Correcting the operator precendence
problem with Content-Length header and uncommenting the test.
Raymond Hettinger [Fri, 24 Dec 2010 00:58:34 +0000 (00:58 +0000)]
Fix docstring.
Raymond Hettinger [Fri, 24 Dec 2010 00:52:54 +0000 (00:52 +0000)]
Fix docs and comment for r87454.
Raymond Hettinger [Fri, 24 Dec 2010 00:48:47 +0000 (00:48 +0000)]
Add test for r87454.
Alexander Belopolsky [Fri, 24 Dec 2010 00:24:11 +0000 (00:24 +0000)]
Issue #9063: Corrected the tzinfo example.
Benjamin Peterson [Thu, 23 Dec 2010 23:45:39 +0000 (23:45 +0000)]
update comment
Éric Araujo [Thu, 23 Dec 2010 23:18:41 +0000 (23:18 +0000)]
Fix syntax typo
Terry Reedy [Thu, 23 Dec 2010 23:10:28 +0000 (23:10 +0000)]
Issue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg to types_map.
Addition OKed by GB on IRC (R. David Murray). No backport.
Benjamin Peterson [Thu, 23 Dec 2010 22:53:42 +0000 (22:53 +0000)]
kill some function imports
Benjamin Peterson [Thu, 23 Dec 2010 22:49:38 +0000 (22:49 +0000)]
use native tenary condition
Benjamin Peterson [Thu, 23 Dec 2010 22:17:42 +0000 (22:17 +0000)]
fix docstring
Raymond Hettinger [Thu, 23 Dec 2010 21:54:02 +0000 (21:54 +0000)]
Fix buglet. If the input was an iterator, the fallback would occur after
part of the iterator had been consumed. Also, fix argument names which
did not match the docs and were a bit misleading.
R. David Murray [Thu, 23 Dec 2010 20:35:46 +0000 (20:35 +0000)]
#
1155362 : allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz
Original patch by Thomas Herve.
R. David Murray [Thu, 23 Dec 2010 19:44:49 +0000 (19:44 +0000)]
#4496: remove misleading comment and note that self.handlers is obsolete.
self.handlers is still used in one urllib2 test, but not by the code iteslf.
Éric Araujo [Thu, 23 Dec 2010 19:13:05 +0000 (19:13 +0000)]
Fix typo in superclass method name
Éric Araujo [Thu, 23 Dec 2010 18:44:31 +0000 (18:44 +0000)]
Nits: use a real boolean, make one docstring more similar to the other ones
Éric Araujo [Thu, 23 Dec 2010 18:41:33 +0000 (18:41 +0000)]
Fix small inaccuracy: there is no index function
Alexander Belopolsky [Thu, 23 Dec 2010 02:58:25 +0000 (02:58 +0000)]
Issue #10587: Document the meaning of str methods.
Alexander Belopolsky [Thu, 23 Dec 2010 02:27:37 +0000 (02:27 +0000)]
Issue #10254: Fixed a crash and a regression introduced by the implementation of PRI 29.
Antoine Pitrou [Wed, 22 Dec 2010 22:19:15 +0000 (22:19 +0000)]
Fix ResourceWarning in test_normalization
Michael Foord [Wed, 22 Dec 2010 18:28:51 +0000 (18:28 +0000)]
Another trivial typo correction in whatsnew
Vinay Sajip [Wed, 22 Dec 2010 15:04:15 +0000 (15:04 +0000)]
Logging documentation updates.
Michael Foord [Wed, 22 Dec 2010 10:39:04 +0000 (10:39 +0000)]
Minor typo corrections in whatsnew
Raymond Hettinger [Wed, 22 Dec 2010 09:11:54 +0000 (09:11 +0000)]
Add todo
Gregory P. Smith [Wed, 22 Dec 2010 05:22:17 +0000 (05:22 +0000)]
fix a compiler warning about err_msg potentially being used uninitialized.
Alexander Belopolsky [Wed, 22 Dec 2010 02:35:20 +0000 (02:35 +0000)]
Removed unneeded #include
Alexander Belopolsky [Wed, 22 Dec 2010 01:37:36 +0000 (01:37 +0000)]
Both PEP 3131 and the current implementation use NFKC normalization
for identifiers. Fixed the documentation to agree.
R. David Murray [Tue, 21 Dec 2010 21:53:37 +0000 (21:53 +0000)]
#4871: check that zipfile password is bytes, and give useful error message.
Previously passing a string in as the password would fail either with
an assertion error or a TypeError with a confusing error message.
Note that a string can't be accepted since zipfile has no way to
guess what encoding should be used to turn it into bytes.
Patch by Victor Stinner.
Antoine Pitrou [Tue, 21 Dec 2010 21:20:59 +0000 (21:20 +0000)]
Issue #10750: The `raw` attribute of buffered IO objects is now read-only.
Raymond Hettinger [Tue, 21 Dec 2010 20:52:12 +0000 (20:52 +0000)]
Document the alternate format for :ref:.
Raymond Hettinger [Tue, 21 Dec 2010 20:09:55 +0000 (20:09 +0000)]
Reference the release schedule
Raymond Hettinger [Tue, 21 Dec 2010 19:24:26 +0000 (19:24 +0000)]
Deprecate assertDictContainsSubset()
Antoine Pitrou [Tue, 21 Dec 2010 18:49:01 +0000 (18:49 +0000)]
Suggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
(part of #10735)
R. David Murray [Tue, 21 Dec 2010 18:24:33 +0000 (18:24 +0000)]
Make test_compileall more robust by using -S to keep sys.path minimized.
Try this again, hopefully the right way this time.
Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path. Having the tests call python
with -S should eliminate the system directories from the path.
R. David Murray [Tue, 21 Dec 2010 18:07:59 +0000 (18:07 +0000)]
Fix the change made for issue
1243654 .
Surprisingly, it turns out there was no test that exercised this code path.
R. David Murray [Mon, 20 Dec 2010 19:04:51 +0000 (19:04 +0000)]
Revert incorrect patch made at the wrong time.
R. David Murray [Mon, 20 Dec 2010 18:08:59 +0000 (18:08 +0000)]
Make test_compileall more robust by using -S to keep sys.path minimized.
Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path. Having subprocess call python
with -S should eliminate the system directories from the path.
Vinay Sajip [Sun, 19 Dec 2010 13:41:26 +0000 (13:41 +0000)]
Logging documentation updates.
Vinay Sajip [Sun, 19 Dec 2010 12:56:57 +0000 (12:56 +0000)]
Logging documentation reorganised.
Georg Brandl [Sun, 19 Dec 2010 12:37:34 +0000 (12:37 +0000)]
Tag 3.2 beta 2.
Georg Brandl [Sun, 19 Dec 2010 12:33:52 +0000 (12:33 +0000)]
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
Senthil Kumaran [Sun, 19 Dec 2010 10:49:52 +0000 (10:49 +0000)]
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.