]>
granicus.if.org Git - python/log
Senthil Kumaran [Wed, 24 Feb 2010 20:55:31 +0000 (20:55 +0000)]
Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data to
a existing req object already having data.
Dirkjan Ochtman [Wed, 24 Feb 2010 17:06:31 +0000 (17:06 +0000)]
Add some notes about Tools/scripts/serve.py.
Ezio Melotti [Wed, 24 Feb 2010 16:49:56 +0000 (16:49 +0000)]
typos
Senthil Kumaran [Wed, 24 Feb 2010 16:45:46 +0000 (16:45 +0000)]
Fix for Issue3819 - urllib2 sends Basic auth across redirects
Eric Smith [Wed, 24 Feb 2010 14:15:36 +0000 (14:15 +0000)]
Issue #7309: Unchecked pointer access when converting UnicodeEncodeError, UnicodeDecodeError, and UnicodeTranslateError to strings.
Dirkjan Ochtman [Wed, 24 Feb 2010 04:49:00 +0000 (04:49 +0000)]
Issue #7427: improve the representation of httplib.BadStatusLine exceptions.
Dirkjan Ochtman [Wed, 24 Feb 2010 04:12:11 +0000 (04:12 +0000)]
Issue #8004: add a serve target to the Doc Makefile.
Dirkjan Ochtman [Wed, 24 Feb 2010 04:00:52 +0000 (04:00 +0000)]
Issue #7733: add explicit reference in asyncore docs.
R. David Murray [Wed, 24 Feb 2010 02:31:27 +0000 (02:31 +0000)]
Issue 7975: in python 2.6 bsddb.dbshelve switched from DictMixin to
MutableMapping, and thereby lost functionality because the replacement
functionality was implemented incorrectly or incompletely). Since bsddb
isn't in py3k, this patch just goes back to using DictMixin in order to
correct the regression.
Benjamin Peterson [Wed, 24 Feb 2010 02:24:35 +0000 (02:24 +0000)]
Merged revisions 78407 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r78407 | benjamin.peterson | 2010-02-23 20:21:34 -0600 (Tue, 23 Feb 2010) | 1 line
rewrite test to not rely on __doc__ being present
........
R. David Murray [Wed, 24 Feb 2010 02:08:28 +0000 (02:08 +0000)]
The primary copy of lib2to3 is not trunk, so the lib2to3 change
should not have been included in the -OO patch, back it out.
Brett Cannon [Wed, 24 Feb 2010 01:38:04 +0000 (01:38 +0000)]
Record that Dino Viehland got commit privs.
Amaury Forgeot d'Arc [Tue, 23 Feb 2010 23:19:39 +0000 (23:19 +0000)]
#4852: Remove dead code in every thread implementation, unused for many years.
Victor Stinner [Tue, 23 Feb 2010 23:16:07 +0000 (23:16 +0000)]
Issue #7649: Fix u'%c' % char for character in range 0x80..0xFF
=> raise an UnicodeDecodeError. Patch written by Ezio Melotti.
Georg Brandl [Tue, 23 Feb 2010 21:48:57 +0000 (21:48 +0000)]
#6544: fix refleak in kqueue, occurring in certain error conditions.
Georg Brandl [Tue, 23 Feb 2010 21:33:17 +0000 (21:33 +0000)]
#8000: fix deprecated directive. What a shame to lose that glorious issue number to such a minor bug :)
Dirkjan Ochtman [Tue, 23 Feb 2010 21:09:52 +0000 (21:09 +0000)]
Fix #
1537721 : add writeheader() method to csv.DictWriter.
Reviewed by skip.montanaro and thomas.wouters.
Thomas Heller [Tue, 23 Feb 2010 20:11:44 +0000 (20:11 +0000)]
ctypes CThunkObject was not registered correctly with the cycle
garbage collector, leading to possible leaks when using callback
functions.
Jack Diederich [Tue, 23 Feb 2010 19:34:06 +0000 (19:34 +0000)]
issue#6442 use in operator instead of has_key
Jack Diederich [Tue, 23 Feb 2010 17:23:30 +0000 (17:23 +0000)]
fixup markup error
Michael Foord [Tue, 23 Feb 2010 17:00:53 +0000 (17:00 +0000)]
unittest.TestResult can now be used with the TextTestRunner. TextTestRunner compatible with old TestResult objects.
Mark Dickinson [Tue, 23 Feb 2010 13:06:50 +0000 (13:06 +0000)]
Fix spacing nit. Thanks Eric Smith for the public humiliation.
Mark Dickinson [Tue, 23 Feb 2010 12:53:52 +0000 (12:53 +0000)]
Make global variable overflowok into a keyword argument; this fixes a failure when running ./python -m test.regrtest -R 3:2: test_format
Tarek Ziadé [Tue, 23 Feb 2010 05:53:05 +0000 (05:53 +0000)]
fixed #5801: removed spurious empty lines in wsgiref
Tarek Ziadé [Tue, 23 Feb 2010 05:36:41 +0000 (05:36 +0000)]
completed the __all__ list and changed the module doctest
Tarek Ziadé [Tue, 23 Feb 2010 05:20:22 +0000 (05:20 +0000)]
added a note on shutil new APIs
Tarek Ziadé [Tue, 23 Feb 2010 05:16:41 +0000 (05:16 +0000)]
added make_archive (and secondary APIs) to shutil
Tarek Ziadé [Tue, 23 Feb 2010 04:57:05 +0000 (04:57 +0000)]
removed debugging code
R. David Murray [Tue, 23 Feb 2010 00:24:49 +0000 (00:24 +0000)]
Issue 6292: for the moment at least, the test suite passes if run
with -OO. Tests requiring docstrings are skipped. Patch by
Brian Curtin, thanks to Matias Torchinsky for helping review and
improve the patch.
Eric Smith [Tue, 23 Feb 2010 00:11:16 +0000 (00:11 +0000)]
Issue #6902: Fix problem with built-in types format incorrectly with 0 padding.
Michael Foord [Mon, 22 Feb 2010 23:28:32 +0000 (23:28 +0000)]
Support for old TestResult object (unittest) with warnings when using unsupported features.
Andrew M. Kuchling [Mon, 22 Feb 2010 23:12:00 +0000 (23:12 +0000)]
#7706: add include guards where they're missing; required for Windows CE
Andrew M. Kuchling [Mon, 22 Feb 2010 23:10:52 +0000 (23:10 +0000)]
#7706: DONT_HAVE_ERRNO_H is no longer defined by configure (after rev.46819).
Andrew M. Kuchling [Mon, 22 Feb 2010 22:48:41 +0000 (22:48 +0000)]
#2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c.
Noted by Joseph Armbruster; patch by Jessica McKellar.
The original code was 'for (;;) {...}', where ... ended
with a 'return -2' statement and did not contain a 'break' or 'continue'
statement. Therefore, the body of the loop is always executed once.
Once upon a time there was a 'continue' in the loop, but it was removed in
rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.
Jack Diederich [Mon, 22 Feb 2010 21:27:38 +0000 (21:27 +0000)]
* fix issue#7476
Andrew M. Kuchling [Mon, 22 Feb 2010 21:04:02 +0000 (21:04 +0000)]
Remove Tools/modulator, a reference to it in the docs, and a screenshot of it.
(I asked the BDFL first, and he approved removing it. The last actual bugfix
to Tools/modulator was in 2001; since then all changes have been search-and-replace:
string methods, whitespace fixes, etc.)
Jack Diederich [Mon, 22 Feb 2010 19:55:22 +0000 (19:55 +0000)]
fixes issue #
1522237 , bad init check in _threading_local
Andrew M. Kuchling [Mon, 22 Feb 2010 18:42:07 +0000 (18:42 +0000)]
#7627: MH.remove() would fail if the MH mailbox was locked;
it would call _unlock_file() and pass it a closed file object. Noted by Rob Austein.
Andrew M. Kuchling [Mon, 22 Feb 2010 18:38:23 +0000 (18:38 +0000)]
Fix comment typo
Eric Smith [Mon, 22 Feb 2010 18:33:47 +0000 (18:33 +0000)]
Issue #7988: Fix default alignment to be right aligned for complex.__format__. Now it matches other numeric types.
Jack Diederich [Mon, 22 Feb 2010 18:17:16 +0000 (18:17 +0000)]
fixes issue #7530, serve_forever()
Andrew M. Kuchling [Mon, 22 Feb 2010 17:21:54 +0000 (17:21 +0000)]
Note granting of commit privileges to Larry Hastings
Ezio Melotti [Mon, 22 Feb 2010 16:30:58 +0000 (16:30 +0000)]
#7482: clarify error message in case of division by zero of float and complex numbers.
Andrew M. Kuchling [Mon, 22 Feb 2010 16:26:47 +0000 (16:26 +0000)]
#7597: curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen
Mark Dickinson [Mon, 22 Feb 2010 15:40:28 +0000 (15:40 +0000)]
Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0.
Andrew M. Kuchling [Mon, 22 Feb 2010 15:13:17 +0000 (15:13 +0000)]
#6414: clarify description of processor endianness.
Text by Alexey Shamrin; I changed 'DEC Alpha' to the more relevant 'Intel Itanium'.
Andrew M. Kuchling [Mon, 22 Feb 2010 14:53:17 +0000 (14:53 +0000)]
#7794: describe 2.6 support for executing directories and zip archives
Senthil Kumaran [Mon, 22 Feb 2010 10:55:08 +0000 (10:55 +0000)]
Fix Issue7172 - BaseHTTPServer.BaseHTTPRequestHandler.responses[405] - changing
server to resource in the 405 response msg.
Andrew M. Kuchling [Mon, 22 Feb 2010 02:29:10 +0000 (02:29 +0000)]
#7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki.
Andrew M. Kuchling [Mon, 22 Feb 2010 02:08:45 +0000 (02:08 +0000)]
Re-word
Michael Foord [Sun, 21 Feb 2010 14:48:59 +0000 (14:48 +0000)]
Silence UnicodeWarning in crazy unittest test.
Mark Dickinson [Sun, 21 Feb 2010 14:42:27 +0000 (14:42 +0000)]
Reduce number of random tests in test_strtod, to avoid hogging buildbot time.
Mark Dickinson [Sun, 21 Feb 2010 13:37:53 +0000 (13:37 +0000)]
Issue #7384: skip test_curses on FreeBSD, in order to allow other buildbot tests to complete.
Mark Dickinson [Sun, 21 Feb 2010 12:57:35 +0000 (12:57 +0000)]
Issue #5211: Fix complex type to avoid implicit calls to
complex.__coerce__. Thanks Meador Inge for the patch.
R. David Murray [Sun, 21 Feb 2010 04:23:00 +0000 (04:23 +0000)]
Issue 7970: When email.Parser.Parser parses a MIME message of type
message/rfc822 it turns it into an object whose body consists of
a list containing a single Message object. HeaderParser, on the
other hand, just copies the body as a string. Generator.flatten
has a special handler for the message mime type that expected the
body to be the one item list. This fails if the message was parsed
by HeaderParser. So we now check to see if the body is a string
first, and if so just we just emit it.
Ezio Melotti [Sat, 20 Feb 2010 22:34:21 +0000 (22:34 +0000)]
skip tests with a non-ascii cwd when the file system encoding is ascii
Senthil Kumaran [Sat, 20 Feb 2010 22:05:34 +0000 (22:05 +0000)]
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
Ezio Melotti [Sat, 20 Feb 2010 09:40:07 +0000 (09:40 +0000)]
Remove e assertIs definitions and use correct assert* methods.
Ezio Melotti [Sat, 20 Feb 2010 08:09:39 +0000 (08:09 +0000)]
#3426: os.path.abspath now returns unicode when its arg is unicode.
Vinay Sajip [Fri, 19 Feb 2010 23:53:17 +0000 (23:53 +0000)]
logging: Documented warnings module integration.
Georg Brandl [Fri, 19 Feb 2010 19:36:08 +0000 (19:36 +0000)]
#7967: PyXML is no more.
Senthil Kumaran [Fri, 19 Feb 2010 07:32:48 +0000 (07:32 +0000)]
Fix for Issue7904. urlparse.urlsplit to handle schemes in the way defined by RFC3986
Fred Drake [Fri, 19 Feb 2010 05:24:30 +0000 (05:24 +0000)]
- apply patch from issue 7005
- add corresponding documentation
Michael Foord [Thu, 18 Feb 2010 21:37:07 +0000 (21:37 +0000)]
Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues when constructing failure messages. Issue 7956
Michael Foord [Thu, 18 Feb 2010 20:30:09 +0000 (20:30 +0000)]
unittest.TestCase uses safe_repr for producing failure messages. Partial fix for issue 7956
Mark Dickinson [Thu, 18 Feb 2010 14:45:33 +0000 (14:45 +0000)]
Doctest fixes for decimal.py: add an integer-argument doctest for logical_invert; don't use integer literals with a leading zero.
Mark Dickinson [Thu, 18 Feb 2010 14:27:02 +0000 (14:27 +0000)]
Issue #7633: Context method in the decimal module (with the exception
of the 'canonical' and 'is_canonical' methods) now consistently accept
integer arguments wherever a Decimal instance is accepted. Thanks
Juan José Conti for the patch.
Andrew M. Kuchling [Thu, 18 Feb 2010 14:16:48 +0000 (14:16 +0000)]
Add various items
Martin v. Löwis [Thu, 18 Feb 2010 12:45:45 +0000 (12:45 +0000)]
Move bsddb47 macros before their use, to make VS 2010 happy.
Martin v. Löwis [Thu, 18 Feb 2010 09:22:20 +0000 (09:22 +0000)]
Stop providing crtassem.h symbols when compiling with
Visual Studio 2010, as msvcr100.dll is not a platform
assembly anymore.
Ezio Melotti [Tue, 16 Feb 2010 23:58:49 +0000 (23:58 +0000)]
#7941: fix error message
Ezio Melotti [Tue, 16 Feb 2010 23:26:09 +0000 (23:26 +0000)]
#7930: fix stripid
R. David Murray [Tue, 16 Feb 2010 17:55:26 +0000 (17:55 +0000)]
Make the references to Popen in the description of Call
and check_call into links.
Martin v. Löwis [Mon, 15 Feb 2010 21:41:12 +0000 (21:41 +0000)]
Issue #7903: Define _BSD_SOURCE through OpenBSD 4.9.
Eric Smith [Mon, 15 Feb 2010 11:55:38 +0000 (11:55 +0000)]
Remove incorrect apostrophe.
Martin v. Löwis [Mon, 15 Feb 2010 08:32:00 +0000 (08:32 +0000)]
Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4.
Mark Dickinson [Sun, 14 Feb 2010 13:40:30 +0000 (13:40 +0000)]
Silence more 'comparison between signed and unsigned' warnings.
Georg Brandl [Sun, 14 Feb 2010 13:38:12 +0000 (13:38 +0000)]
#7926: fix-up wording.
Mark Dickinson [Sun, 14 Feb 2010 12:31:26 +0000 (12:31 +0000)]
Silence more compiler warnings; fix an instance of potential undefined behaviour from signed overflow.
Mark Dickinson [Sun, 14 Feb 2010 12:16:43 +0000 (12:16 +0000)]
Silence some 'comparison between signed and unsigned' compiler warnings.
Georg Brandl [Sun, 14 Feb 2010 08:18:23 +0000 (08:18 +0000)]
#7926: fix stray parens.
Ezio Melotti [Sun, 14 Feb 2010 02:50:23 +0000 (02:50 +0000)]
#7921: fix links. Patch by Brian Curtin.
Mark Dickinson [Fri, 12 Feb 2010 21:16:38 +0000 (21:16 +0000)]
Check that 'd' isn't allowed as an exponent specifier in inputs to the float function.
Ezio Melotti [Thu, 11 Feb 2010 23:50:57 +0000 (23:50 +0000)]
#7907: fix wrong function name in doc. Patch by Brian Curtin.
Michael Foord [Thu, 11 Feb 2010 14:12:07 +0000 (14:12 +0000)]
Adding TextTestResult to unittest.__all__
Ronald Oussoren [Thu, 11 Feb 2010 13:26:54 +0000 (13:26 +0000)]
Finish fix for issue 7715, after explicit search for calls to `arch`
Ronald Oussoren [Thu, 11 Feb 2010 13:19:34 +0000 (13:19 +0000)]
Fix copy&paste error in the definition of ARCH_RUN_32BIT for a 3-way universal
build (all other definition where correct).
Ronald Oussoren [Thu, 11 Feb 2010 13:13:08 +0000 (13:13 +0000)]
Add guard around the prototype for completion_matches to enable
compilition with libedit on OSX 10.5
R. David Murray [Thu, 11 Feb 2010 01:56:42 +0000 (01:56 +0000)]
Improve issue 7835 fix per MAL to handle the case that the
module dictionary has also been cleared.
R. David Murray [Thu, 11 Feb 2010 01:38:42 +0000 (01:38 +0000)]
Issue 5754: tweak shelve doc wording to make it clearer that even when
writeback=True values are written to the backing store when assigned to
the shelf. Add test to confirm that this happens. Doc patch and added
test by Robert Lehmann. I also fixed the cross references to the sync
and close methods.
R. David Murray [Wed, 10 Feb 2010 22:42:04 +0000 (22:42 +0000)]
Issue 7835: Shelve's __del__ method calls its close method, and its
close method refers to an identifier in the global module namespace.
This means that when __del__ is called during interpreter shutdown (if,
for example, the calling program still has a pointer to the shelf),
sometimes that global identifier would wind up being None, causing
mysterious 'ignored' exceptions. This patch checks for the possible None
value first before using the global, thus avoiding the error messages.
Ezio Melotti [Wed, 10 Feb 2010 21:40:33 +0000 (21:40 +0000)]
#7712: add a temp_cwd context manager to test_support and use it in regrtest to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch.
Michael Foord [Wed, 10 Feb 2010 15:50:58 +0000 (15:50 +0000)]
Fix for unittest tests, to be merged to py3k
Michael Foord [Wed, 10 Feb 2010 14:31:30 +0000 (14:31 +0000)]
Remove deprecation on assert_. It is used too frequently.
Michael Foord [Wed, 10 Feb 2010 14:25:12 +0000 (14:25 +0000)]
Issue 7893 and Issue 7588
Antoine Pitrou [Tue, 9 Feb 2010 17:08:05 +0000 (17:08 +0000)]
Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
in XML processing instructions and comments. These raw characters are
allowed by the XML specification, and are necessary when outputting e.g.
PHP code in a processing instruction. Patch by Neil Muller.
Michael Foord [Mon, 8 Feb 2010 23:15:22 +0000 (23:15 +0000)]
Doc fix for unittest.
Georg Brandl [Mon, 8 Feb 2010 22:48:37 +0000 (22:48 +0000)]
Convert test failure from output-producing to self.fail().
Michael Foord [Mon, 8 Feb 2010 22:41:16 +0000 (22:41 +0000)]
Make assertMultiLineEqual the default for comparing unicode strings.
Georg Brandl [Mon, 8 Feb 2010 22:40:51 +0000 (22:40 +0000)]
Fix missing string formatting placeholder.