]>
granicus.if.org Git - python/log
Benjamin Peterson [Tue, 27 Apr 2010 21:19:06 +0000 (21:19 +0000)]
correct signature
Benjamin Peterson [Tue, 27 Apr 2010 21:18:30 +0000 (21:18 +0000)]
condense import
Benjamin Peterson [Tue, 27 Apr 2010 21:17:22 +0000 (21:17 +0000)]
fold __future__ imports
Benjamin Peterson [Tue, 27 Apr 2010 21:15:28 +0000 (21:15 +0000)]
fix comment
Benjamin Peterson [Tue, 27 Apr 2010 21:01:54 +0000 (21:01 +0000)]
reject None as the buffering argument like the C implementation does #8546
Antoine Pitrou [Tue, 27 Apr 2010 19:09:59 +0000 (19:09 +0000)]
Issue #8549: Fix compiling the _ssl extension under AIX. Patch by
Sridhar Ratnakumar.
Antoine Pitrou [Tue, 27 Apr 2010 13:13:26 +0000 (13:13 +0000)]
socket.error can really happen here, and fix a possible NameError
Antoine Pitrou [Tue, 27 Apr 2010 10:32:58 +0000 (10:32 +0000)]
Qualify or remove or bare excepts. Simplify exception handling in places.
Remove uses of test_support.TestFailed.
Antoine Pitrou [Tue, 27 Apr 2010 09:51:18 +0000 (09:51 +0000)]
replace custom code with standard library functionality (HTTPServer.shutdown())
+ enable test that was never run (!)
+ make tests faster by lowering polling timeout
Antoine Pitrou [Tue, 27 Apr 2010 08:40:51 +0000 (08:40 +0000)]
Remove uses of find_unused_port() in test_ssl, and small cleanups
Michael Foord [Mon, 26 Apr 2010 23:36:47 +0000 (23:36 +0000)]
Adding versionadded to various new unittest functions in documentation
R. David Murray [Mon, 26 Apr 2010 21:17:14 +0000 (21:17 +0000)]
Issue #6656: fix locale.format_string to handle escaped percents and mappings.
Refactors format_string. Includes tests for the two problems noted in
the issue, but as far as I can see there are no other tests that confirm
that format_string conforms to normal % formatting rules.
Antoine Pitrou [Mon, 26 Apr 2010 17:23:33 +0000 (17:23 +0000)]
When calling getpeername() in SSLSocket.__init__, only silence exceptions
caused by the "socket not connected" condition.
R. David Murray [Mon, 26 Apr 2010 16:54:57 +0000 (16:54 +0000)]
Issue 8325: Improve regrtest --help text.
Brett Cannon [Sun, 25 Apr 2010 23:11:51 +0000 (23:11 +0000)]
Revert an accidental commit from r80492.
Brett Cannon [Sun, 25 Apr 2010 22:33:36 +0000 (22:33 +0000)]
When DeprecationWarning was silenced by default, it also silenced any use of -Q
by default as well. This change fixes that by treating -Q like -3 when it comes
to DeprecationWarning; using it causes the silencing to not occur.
Fixes issue #7319.
Antoine Pitrou [Sun, 25 Apr 2010 21:40:32 +0000 (21:40 +0000)]
Issue #2302: Fix a race condition in SocketServer.BaseServer.shutdown,
where the method could block indefinitely if called just before the
event loop started running. This also fixes the occasional freezes
witnessed in test_httpservers.
Antoine Pitrou [Sun, 25 Apr 2010 21:15:50 +0000 (21:15 +0000)]
Replace a Lock with a better suited Event.
Michael Foord [Sun, 25 Apr 2010 19:02:46 +0000 (19:02 +0000)]
Adding unittest.removeHandler function / decorator for removing the signal.SIGINT signal handler. With tests and docs.
Georg Brandl [Sun, 25 Apr 2010 10:57:15 +0000 (10:57 +0000)]
Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric.
Georg Brandl [Sun, 25 Apr 2010 10:56:41 +0000 (10:56 +0000)]
Fix code example to have valid syntax so that it can be highlighted.
Georg Brandl [Sun, 25 Apr 2010 10:55:58 +0000 (10:55 +0000)]
Patch from Tim Hatch: Minor spelling changes to _winreg docs.
Georg Brandl [Sun, 25 Apr 2010 10:55:16 +0000 (10:55 +0000)]
Patch from Tim Hatch: Remove reference to winreg being the fabled high-level registry interface.
Georg Brandl [Sun, 25 Apr 2010 10:54:42 +0000 (10:54 +0000)]
Patch from Tim Hatch: Better cross-referencing in socket and winreg docs.
Georg Brandl [Sun, 25 Apr 2010 10:29:17 +0000 (10:29 +0000)]
Remove LaTeXy index entry syntax.
Georg Brandl [Sun, 25 Apr 2010 10:17:27 +0000 (10:17 +0000)]
#8522: use with statement instead of try-finally for file handling.
Georg Brandl [Sun, 25 Apr 2010 10:16:00 +0000 (10:16 +0000)]
#8528: fix typo.
Sean Reifscheider [Sun, 25 Apr 2010 06:31:23 +0000 (06:31 +0000)]
Fixing obscure syslog corner-case when sys.argv = None, syslog() would call
openlog() for every logged message.
Antoine Pitrou [Sat, 24 Apr 2010 20:04:58 +0000 (20:04 +0000)]
Issue #5103: SSL handshake would ignore the socket timeout and block
indefinitely if the other end didn't respond.
Antoine Pitrou [Sat, 24 Apr 2010 19:57:01 +0000 (19:57 +0000)]
The do_handshake() method of SSL objects now adjusts the blocking mode of
the SSL structure if necessary (as other methods already do).
Brian Curtin [Sat, 24 Apr 2010 17:10:22 +0000 (17:10 +0000)]
Fix #5774. Some _winreg functions are documented as taking kwargs but don't.
Matthias Klose [Sat, 24 Apr 2010 16:38:36 +0000 (16:38 +0000)]
- Issue #8509: Fix quoting in help strings and code snippets in configure.in.
Brian Curtin [Sat, 24 Apr 2010 15:40:11 +0000 (15:40 +0000)]
Fix #7838. Add docstrings and privatize _subprocess implementation details.
Since CREATE_NEW_* are used for the creation flags of a subprocess, they
were added to __all__. The rest of the previously exposed attributes are
now qualified by _subprocess.ATTR rather than importing *.
Antoine Pitrou [Sat, 24 Apr 2010 10:43:57 +0000 (10:43 +0000)]
Make test_makefile_close a networked test (can't read() from a non-connected
socket under OS X), and skip it under Windows (where sockets can't be read()
from using their fds).
Georg Brandl [Sat, 24 Apr 2010 09:08:10 +0000 (09:08 +0000)]
#7507: quote "!" in pipes.quote(); it is a special character for some shells.
Georg Brandl [Sat, 24 Apr 2010 08:56:58 +0000 (08:56 +0000)]
Markup fixes.
Antoine Pitrou [Fri, 23 Apr 2010 23:25:45 +0000 (23:25 +0000)]
Issue #5238: Calling makefile() on an SSL object would prevent the
underlying socket from being closed until all objects get truely destroyed.
Antoine Pitrou [Fri, 23 Apr 2010 22:54:59 +0000 (22:54 +0000)]
Issue #7943: Fix circular reference created when instantiating an SSL
socket. Initial patch by Péter Szabó.
Florent Xicluna [Fri, 23 Apr 2010 18:10:12 +0000 (18:10 +0000)]
Fix the "regrtest -s" switch.
Florent Xicluna [Fri, 23 Apr 2010 17:59:10 +0000 (17:59 +0000)]
Remove ImportWarnings filters. They become obsolete after r79310, issue #8205.
Sean Reifscheider [Fri, 23 Apr 2010 08:38:24 +0000 (08:38 +0000)]
Small comment documentation change to clarify "ident" selection.
Sean Reifscheider [Fri, 23 Apr 2010 08:31:55 +0000 (08:31 +0000)]
issue8451: Making syslog module use sys.argv[0] for "ident".
Antoine Pitrou [Thu, 22 Apr 2010 23:33:02 +0000 (23:33 +0000)]
Issue #8108: Fix the unwrap() method of SSL objects when the socket has
a non-infinite timeout. Also make that method friendlier with applications
wanting to continue using the socket in clear-text mode, by disabling
OpenSSL's internal readahead. Thanks to Darryl Miles for guidance.
Issue #8108: test_ftplib's non-blocking SSL server now has proper handling
of SSL shutdowns.
Georg Brandl [Thu, 22 Apr 2010 22:15:33 +0000 (22:15 +0000)]
Add "report a bug" links in some prominent places. Make it clear that doc bugs can be mailed to docs@python.org. Clarify tracker usage.
Antoine Pitrou [Thu, 22 Apr 2010 18:00:41 +0000 (18:00 +0000)]
Skip test on old versions of OpenSSL
Antoine Pitrou [Thu, 22 Apr 2010 17:44:41 +0000 (17:44 +0000)]
Temporarily display OpenSSL version in verbose run -- trying to diagnose failure on Neal's buildbot.
Senthil Kumaran [Thu, 22 Apr 2010 12:10:13 +0000 (12:10 +0000)]
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.
Ezio Melotti [Thu, 22 Apr 2010 11:53:21 +0000 (11:53 +0000)]
Rephrase comment.
Martin v. Löwis [Thu, 22 Apr 2010 11:34:36 +0000 (11:34 +0000)]
Issue #8475: Pass absolute interpreter path to
"make html".
Ezio Melotti [Thu, 22 Apr 2010 11:23:31 +0000 (11:23 +0000)]
#8474: fix duplicate test in test_email.
Senthil Kumaran [Thu, 22 Apr 2010 05:48:35 +0000 (05:48 +0000)]
Updated the RFCs list in the See Also section of urlparse.rst
Antoine Pitrou [Wed, 21 Apr 2010 22:53:29 +0000 (22:53 +0000)]
Issue #7332: Remove the 16KB stack-based buffer in
PyMarshal_ReadLastObjectFromFile, which doesn't bring any noticeable
benefit compared to the dynamic memory allocation fallback. Patch by
Charles-François Natali.
Matthias Klose [Wed, 21 Apr 2010 22:18:52 +0000 (22:18 +0000)]
- Build the ossaudio extension on GNU/kFreeBSD.
Matthias Klose [Wed, 21 Apr 2010 21:45:30 +0000 (21:45 +0000)]
setup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.
Antoine Pitrou [Wed, 21 Apr 2010 19:36:23 +0000 (19:36 +0000)]
Forgot to add the sample certificate (followup to r80314)
Antoine Pitrou [Wed, 21 Apr 2010 19:28:03 +0000 (19:28 +0000)]
Issue #8484: Load all ciphers and digest algorithms when initializing
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".
Tarek Ziadé [Wed, 21 Apr 2010 13:32:26 +0000 (13:32 +0000)]
shutil: removed unused import and fixed attributes names in _call_external_zip
Martin v. Löwis [Wed, 21 Apr 2010 06:37:48 +0000 (06:37 +0000)]
Add Tim Golden.
Ronald Oussoren [Wed, 21 Apr 2010 06:00:35 +0000 (06:00 +0000)]
Sync test_plistlib.py with plistlib.py
Victor Stinner [Tue, 20 Apr 2010 22:28:31 +0000 (22:28 +0000)]
Issue #8437: Fix test_gdb failures, patch written by Dave Malcolm
Tarek Ziadé [Tue, 20 Apr 2010 21:09:06 +0000 (21:09 +0000)]
removed ztar support in shutil.make_archive
Ronald Oussoren [Tue, 20 Apr 2010 20:59:37 +0000 (20:59 +0000)]
Fix for issue 7852: the DTD for OSX Plists has changed due
to a change in the company name for Apple.
Senthil Kumaran [Tue, 20 Apr 2010 20:37:59 +0000 (20:37 +0000)]
Issue2987 - Added additional Invalid URL and changed the Invalid URL checking code for better.
Matthias Klose [Tue, 20 Apr 2010 19:45:34 +0000 (19:45 +0000)]
fix typo in r79533, introduced by the fix for issue #8233
Ezio Melotti [Tue, 20 Apr 2010 16:49:48 +0000 (16:49 +0000)]
#8472: fix wrong function name in functions.rst: itertools.filterfalse -> itertools.ifilterfalse
Brian Curtin [Tue, 20 Apr 2010 15:23:18 +0000 (15:23 +0000)]
Add version info for os.kill and signal changes from #
1220212 .
Ronald Oussoren [Tue, 20 Apr 2010 08:54:48 +0000 (08:54 +0000)]
This patch fixes the handling of a weak-linked
variable and should fix issue #8095.
Ronald Oussoren [Tue, 20 Apr 2010 08:53:12 +0000 (08:53 +0000)]
The PythonLauncher change is needed due
to changes in how the BASECFLAGS and CFLAGS
variables get filled by configure.
The Mac/Makefile.in change ensures that
pythonw gets build with the rigth deployment
targets.
Stefan Krah [Tue, 20 Apr 2010 07:59:10 +0000 (07:59 +0000)]
1) The timeout in the itimer tests was too low for slow or heavily
loaded machines.
2) Even with the increased timeout, the OS does not guarantee that
a process will get a certain amount of virtual time in 60s, so
the failure is changed to a diagnostic.
Senthil Kumaran [Tue, 20 Apr 2010 06:54:59 +0000 (06:54 +0000)]
Fix Issue8460: Victor's patch to add timeout in test_urllib2net test_urls.
Ronald Oussoren [Tue, 20 Apr 2010 05:50:44 +0000 (05:50 +0000)]
Explicitly set system default for $PATH to
ensure we have a clean build environment (OSX installer)
Giampaolo Rodolà [Mon, 19 Apr 2010 21:46:28 +0000 (21:46 +0000)]
Fix Issue #4841: timeout is now applied for connections resulting from PORT/EPRT commands
Tarek Ziadé [Mon, 19 Apr 2010 21:28:21 +0000 (21:28 +0000)]
Fixed #8463: added missing reference to bztar in shutil's documentation.
Tarek Ziadé [Mon, 19 Apr 2010 21:13:03 +0000 (21:13 +0000)]
few pep8 fixes
Antoine Pitrou [Mon, 19 Apr 2010 18:52:43 +0000 (18:52 +0000)]
Issue #8438: Remove reference to the missing "surrogateescape" encoding
error handler from the new IO library.
Raymond Hettinger [Sun, 18 Apr 2010 22:57:57 +0000 (22:57 +0000)]
Issue 8436: set.__init__ accepts keyword args
Antoine Pitrou [Sun, 18 Apr 2010 19:14:38 +0000 (19:14 +0000)]
Fix catastrophic file opening and closing logic in test_linecache
Victor Stinner [Sun, 18 Apr 2010 18:22:25 +0000 (18:22 +0000)]
Revert r80166 (and r80171), restore Lib/platform.py. subprocess cannot be used in platform.py
Ronald Oussoren [Sun, 18 Apr 2010 17:59:37 +0000 (17:59 +0000)]
Add the OSX universal binary related options
to CFLAGS instead of BASECFLAGS.
This fixes issue 8366 and is needed due to
changes introduced in the fix for issue
1628484 .
Ronald Oussoren [Sun, 18 Apr 2010 14:01:05 +0000 (14:01 +0000)]
Add check to build-installer.py to ensure that
the right version of Tcl/Tk is available (on OSX)
Fixes issue #5651
Ronald Oussoren [Sun, 18 Apr 2010 13:47:49 +0000 (13:47 +0000)]
Fix for issue #7072
Giampaolo Rodolà [Sun, 18 Apr 2010 12:55:03 +0000 (12:55 +0000)]
Fix Issue #3817: 225 is now considered a valid response code for ABOR
Antoine Pitrou [Sun, 18 Apr 2010 11:16:24 +0000 (11:16 +0000)]
Fix bootstrap after r80166
Victor Stinner [Sun, 18 Apr 2010 09:07:49 +0000 (09:07 +0000)]
platform: use subprocess.Popen() instead of os.popen() in _syscmd_file()
* Popen() avoids ugly shell escape: target.replace('"', '\\"')
* Use proc.communicate() instead of f.stdout.read()
* Get output from stdout by splitting with ": " instead of splitting by spaces
to support filename with spaces
Martin v. Löwis [Sat, 17 Apr 2010 22:40:40 +0000 (22:40 +0000)]
Issue #8279: Fix test_gdb failures.
R. David Murray [Sat, 17 Apr 2010 21:59:26 +0000 (21:59 +0000)]
Issue #8263: On freebsd6 the unittest 'break' test stops regrtest; skip it.
This is presumably related to issue 3864, and appears to be due
to a platform bug on freebsd6.
Martin v. Löwis [Sat, 17 Apr 2010 17:10:55 +0000 (17:10 +0000)]
Add Giampaolo.
Antoine Pitrou [Sat, 17 Apr 2010 17:10:38 +0000 (17:10 +0000)]
Issue #8322: Add a *ciphers* argument to SSL sockets, so as to change the
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
R. David Murray [Sat, 17 Apr 2010 15:45:38 +0000 (15:45 +0000)]
Update link to Apple Publication Style guide.
Senthil Kumaran [Sat, 17 Apr 2010 14:30:53 +0000 (14:30 +0000)]
Fix Issue5650 - Update the RFC List in the urlparse module.
R. David Murray [Sat, 17 Apr 2010 05:26:26 +0000 (05:26 +0000)]
Issue #3864: Skip three test_signal tests on freebsd6 due to platform bug.
Two itimer tests and an interprocess signal test fail on FreeBSD 6 if
any test that starts a thread runs before test_signal. Since FreeBSD7
does not show this behavior, the bug is most likely a platform bug,
so this patch just skips the failing tests on freebsd6.
Benjamin Peterson [Fri, 16 Apr 2010 22:52:44 +0000 (22:52 +0000)]
tiny simplification
Benjamin Peterson [Fri, 16 Apr 2010 22:35:38 +0000 (22:35 +0000)]
have a clear error when passing something > sys.maxsize to bytearray
Benjamin Peterson [Fri, 16 Apr 2010 22:25:57 +0000 (22:25 +0000)]
fix typo
Benjamin Peterson [Fri, 16 Apr 2010 22:24:16 +0000 (22:24 +0000)]
bytearray -> type2test
Benjamin Peterson [Fri, 16 Apr 2010 21:55:10 +0000 (21:55 +0000)]
remove check for unicode
Antoine Pitrou [Fri, 16 Apr 2010 21:34:02 +0000 (21:34 +0000)]
Ignore jinja2
Senthil Kumaran [Fri, 16 Apr 2010 02:46:46 +0000 (02:46 +0000)]
Fix issue2987: RFC2732 support for urlparse (IPv6 addresses)
Benjamin Peterson [Thu, 15 Apr 2010 21:42:16 +0000 (21:42 +0000)]
add space
Andrew M. Kuchling [Thu, 15 Apr 2010 01:42:27 +0000 (01:42 +0000)]
Add various items