]> granicus.if.org Git - python/log
python
9 years agoNull merge
Serhiy Storchaka [Fri, 10 Apr 2015 10:03:05 +0000 (13:03 +0300)]
Null merge

9 years agoUse assertRaisesRegex instead of deprecated assertRaisesRegexp.
Serhiy Storchaka [Fri, 10 Apr 2015 09:54:19 +0000 (12:54 +0300)]
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.

9 years agoUse assertRaisesRegex instead of deprecated assertRaisesRegexp.
Serhiy Storchaka [Fri, 10 Apr 2015 09:52:09 +0000 (12:52 +0300)]
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.

9 years agoMerge with 3.4.
Zachary Ware [Fri, 10 Apr 2015 01:20:55 +0000 (20:20 -0500)]
Merge with 3.4.

The fix has moved in this branch.  Also, the opt-in is already available
on this branch; just set nasmDir when building.

9 years agoPut the NASM pulled from svn.python.org at the front of the PATH.
Zachary Ware [Fri, 10 Apr 2015 01:16:05 +0000 (20:16 -0500)]
Put the NASM pulled from svn.python.org at the front of the PATH.

This will prevent failures from the version of NASM installed on buildbots,
if the ability to override the version used is desired again later, we can
figure out a way to opt in.

9 years agoReplaced "string" with "bytes object" in docstrings of binary I/O objects.
Serhiy Storchaka [Thu, 9 Apr 2015 23:19:57 +0000 (02:19 +0300)]
Replaced "string" with "bytes object" in docstrings of binary I/O objects.

9 years agoReplaced "string" with "bytes object" in docstrings of binary I/O objects.
Serhiy Storchaka [Thu, 9 Apr 2015 23:18:44 +0000 (02:18 +0300)]
Replaced "string" with "bytes object" in docstrings of binary I/O objects.

9 years agoNull merge with 3.4
Zachary Ware [Thu, 9 Apr 2015 20:56:22 +0000 (15:56 -0500)]
Null merge with 3.4

9 years agoBacked out changeset bc41a4d6c58f after buildbots have new OpenSSL source.
Zachary Ware [Thu, 9 Apr 2015 20:55:56 +0000 (15:55 -0500)]
Backed out changeset bc41a4d6c58f after buildbots have new OpenSSL source.

9 years agoRefresh OpenSSL sources on the buildbots
Zachary Ware [Thu, 9 Apr 2015 20:51:17 +0000 (15:51 -0500)]
Refresh OpenSSL sources on the buildbots

9 years agoFix prepare_ssl.py script
Zachary Ware [Thu, 9 Apr 2015 20:48:32 +0000 (15:48 -0500)]
Fix prepare_ssl.py script

Builds using prepared sources that had Perl available anyway were broken
by the previous fix to this script (oops).

9 years agoIssue #23817: FreeBSD now uses "1.0" the the SOVERSION as other operating
Victor Stinner [Thu, 9 Apr 2015 20:29:52 +0000 (22:29 +0200)]
Issue #23817: FreeBSD now uses "1.0" the the SOVERSION as other operating
systems, instead of just "1".

9 years agoIssue #23686: Update Windows build to use OpenSSL 1.0.2a.
Zachary Ware [Wed, 8 Apr 2015 00:59:37 +0000 (19:59 -0500)]
Issue #23686: Update Windows build to use OpenSSL 1.0.2a.

9 years agoFix typo in telnet docs (reported by Keith Briggs)
Tim Golden [Wed, 8 Apr 2015 15:52:27 +0000 (16:52 +0100)]
Fix typo in telnet docs (reported by Keith Briggs)

9 years agoactually ssl3 is just completely broken
Benjamin Peterson [Wed, 8 Apr 2015 15:11:00 +0000 (11:11 -0400)]
actually ssl3 is just completely broken

9 years agoIssue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available.
Berker Peksag [Wed, 8 Apr 2015 14:56:30 +0000 (17:56 +0300)]
Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available.

Patch by Davin Potts.

9 years agoSkip nntplib tests when transient errors captured.
Berker Peksag [Wed, 8 Apr 2015 08:24:27 +0000 (11:24 +0300)]
Skip nntplib tests when transient errors captured.

9 years agoIssue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
Victor Stinner [Tue, 7 Apr 2015 19:38:04 +0000 (21:38 +0200)]
Issue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
again if the first call to connect() raises an InterruptedError.

When the C function connect() fails with EINTR, the connection runs in
background. We have to wait until the socket becomes writable to be notified
when the connection succeed or fails.

9 years agoremove smtpd dead code (closes #23873)
Benjamin Peterson [Tue, 7 Apr 2015 15:59:06 +0000 (11:59 -0400)]
remove smtpd dead code (closes #23873)

Patch by Hoolean.

9 years agoUpdate pip to 6.1.1
Donald Stufft [Tue, 7 Apr 2015 11:09:59 +0000 (07:09 -0400)]
Update pip to 6.1.1

9 years agoIssue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
Victor Stinner [Tue, 7 Apr 2015 10:52:50 +0000 (12:52 +0200)]
Issue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
are down, don't use anymore in test_urllib2net

9 years agoIssue #23881: urllib.request.ftpwrapper constructor now closes the socket if
Victor Stinner [Tue, 7 Apr 2015 10:49:27 +0000 (12:49 +0200)]
Issue #23881: urllib.request.ftpwrapper constructor now closes the socket if
the FTP connection failed to fix a ResourceWarning.

9 years agoUpgrade pip to 6.1.0 and setuptools to 15.0
Donald Stufft [Tue, 7 Apr 2015 05:29:33 +0000 (01:29 -0400)]
Upgrade pip to 6.1.0 and setuptools to 15.0

9 years agoIssue #22977: Remove unconditional import of ctypes.
Serhiy Storchaka [Mon, 6 Apr 2015 17:37:16 +0000 (20:37 +0300)]
Issue #22977: Remove unconditional import of ctypes.

9 years agoremove extra arguments in arg parsing format codes (closes #23875)
Benjamin Peterson [Mon, 6 Apr 2015 17:05:22 +0000 (13:05 -0400)]
remove extra arguments in arg parsing format codes (closes #23875)

9 years agoAdded missing right bracket (reported by Daryl Klakouski)
Tim Golden [Mon, 6 Apr 2015 10:04:49 +0000 (11:04 +0100)]
Added missing right bracket (reported by Daryl Klakouski)

9 years agoUpdates Windows release scripts to generate and upload GPG signatures.
Steve Dower [Mon, 6 Apr 2015 01:42:37 +0000 (18:42 -0700)]
Updates Windows release scripts to generate and upload GPG signatures.

9 years agoNull merge from 3.4
Zachary Ware [Thu, 9 Apr 2015 19:44:18 +0000 (14:44 -0500)]
Null merge from 3.4

9 years agoFix prepare_ssl.py for OpenSSL 1.0.2a builds without Perl (using old system).
Zachary Ware [Wed, 8 Apr 2015 01:38:53 +0000 (20:38 -0500)]
Fix prepare_ssl.py for OpenSSL 1.0.2a builds without Perl (using old system).

This change affects the makefiles checked into svn.python.org, which the 3.5
build no longer uses.  3.4 and 2.7 both still use those makefiles, but their
build_ssl.py scripts don't require an update; if the script is running the
'fix_makefiles' method it already has Perl available anyway.

9 years agoIssue #23618: Fix internal_select() for negative timeout (blocking socket) when
Victor Stinner [Thu, 9 Apr 2015 08:27:25 +0000 (10:27 +0200)]
Issue #23618: Fix internal_select() for negative timeout (blocking socket) when
poll() is not available.

select() doesn't accept negative timeout, the timeout parameter must be NULL to
block on select().

9 years agoIssue #23834: Fix the default socket timeout
Victor Stinner [Thu, 9 Apr 2015 08:23:12 +0000 (10:23 +0200)]
Issue #23834: Fix the default socket timeout

Use -1 second by default, not -1 nanosecond.

9 years agoMerge from 3.4
Tim Golden [Wed, 8 Apr 2015 15:53:21 +0000 (16:53 +0100)]
Merge from 3.4

9 years agomerge 3.4
Benjamin Peterson [Wed, 8 Apr 2015 15:11:45 +0000 (11:11 -0400)]
merge 3.4

9 years agoIssue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available.
Berker Peksag [Wed, 8 Apr 2015 14:57:44 +0000 (17:57 +0300)]
Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available.

Patch by Davin Potts.

9 years agoIssue #23027: test_warnings now passes all tests when run it with -Werror.
Berker Peksag [Wed, 8 Apr 2015 14:38:39 +0000 (17:38 +0300)]
Issue #23027: test_warnings now passes all tests when run it with -Werror.

9 years agoSkip nntplib tests when transient errors captured.
Berker Peksag [Wed, 8 Apr 2015 08:24:51 +0000 (11:24 +0300)]
Skip nntplib tests when transient errors captured.

9 years agoIssue #23883: Add missing entries to traceback.__all__.
Berker Peksag [Wed, 8 Apr 2015 06:47:14 +0000 (09:47 +0300)]
Issue #23883: Add missing entries to traceback.__all__.

9 years agoissue10838: Rename the subprocess.mswindows internal global to _mswindows.
Gregory P. Smith [Tue, 7 Apr 2015 23:11:33 +0000 (16:11 -0700)]
issue10838: Rename the subprocess.mswindows internal global to _mswindows.
It is internal only, not a documented API.

9 years agoAddresses Issue #10838: The subprocess now module includes
Gregory P. Smith [Tue, 7 Apr 2015 22:57:54 +0000 (15:57 -0700)]
Addresses Issue #10838: The subprocess now module includes
SubprocessError and TimeoutError in its list of exported names for the
users wild enough to use "from subprocess import *".

MAXFD, mswindows and list2cmdline should be dealt with (renamed or
moved) in separate commits.

Committed at 35,000ft.  Thanks chromebook free gogo wifi passes!

9 years agoMerge 3.4 (asyncio)
Victor Stinner [Tue, 7 Apr 2015 19:38:36 +0000 (21:38 +0200)]
Merge 3.4 (asyncio)

9 years agoIssue #23411: Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
Serhiy Storchaka [Tue, 7 Apr 2015 16:09:01 +0000 (19:09 +0300)]
Issue #23411: Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__.
Patch by Martin Panter.

9 years agomerge 3.4 (#23873)
Benjamin Peterson [Tue, 7 Apr 2015 16:00:37 +0000 (12:00 -0400)]
merge 3.4 (#23873)

9 years agoupdate pip to 6.1.1
Donald Stufft [Tue, 7 Apr 2015 11:10:38 +0000 (07:10 -0400)]
update pip to 6.1.1

9 years agoMerge 3.4 (test_urllib2net)
Victor Stinner [Tue, 7 Apr 2015 10:53:07 +0000 (12:53 +0200)]
Merge 3.4 (test_urllib2net)

9 years ago(Merge 3.4) Issue #23881: urllib.request.ftpwrapper constructor now closes the
Victor Stinner [Tue, 7 Apr 2015 10:50:24 +0000 (12:50 +0200)]
(Merge 3.4) Issue #23881: urllib.request.ftpwrapper constructor now closes the
socket if the FTP connection failed to fix a ResourceWarning.

9 years agoMerged update of pip to 6.1.0 and setuptools to 15.0
Donald Stufft [Tue, 7 Apr 2015 05:30:33 +0000 (01:30 -0400)]
Merged update of pip to 6.1.0 and setuptools to 15.0

9 years agoIssue #23853: Methods of SSL socket don't reset the socket timeout anymore each
Victor Stinner [Mon, 6 Apr 2015 20:46:13 +0000 (22:46 +0200)]
Issue #23853: Methods of SSL socket don't reset the socket timeout anymore each
time bytes are received or sent. The socket timeout is now the maximum total
duration of the method.

This change fixes a denial of service if the application is regulary
interrupted by a signal and the signal handler does not raise an exception.

9 years agoIssue #22117: Fix sock_call_ex() for non-blocking socket
Victor Stinner [Mon, 6 Apr 2015 20:30:41 +0000 (22:30 +0200)]
Issue #22117: Fix sock_call_ex() for non-blocking socket

Call internal_select() with a timeout of 0 second, not a timeout of -1 second
(blocking)!

9 years agoIssue #23853: socket.socket.sendall() does no more reset the socket timeout
Victor Stinner [Mon, 6 Apr 2015 21:16:34 +0000 (23:16 +0200)]
Issue #23853: socket.socket.sendall() does no more reset the socket timeout
each time data is sent successfuly. The socket timeout is now the maximum total
duration to send all data.

9 years agoIssue #23834: Fix initial value of the socket timeout
Victor Stinner [Mon, 6 Apr 2015 21:06:01 +0000 (23:06 +0200)]
Issue #23834: Fix initial value of the socket timeout

Use _PyTime_FromSeconds() to initialize the default socket timeout to -1
second, instead of -1 nanosecond which causes rounding issues in
internal_select().

9 years agoIssue #22721: An order of multiline pprint output of set or dict containing
Serhiy Storchaka [Mon, 6 Apr 2015 19:52:44 +0000 (22:52 +0300)]
Issue #22721: An order of multiline pprint output of set or dict containing
orderable and non-orderable elements no longer depends on iteration order of
set or dict.

9 years agoIssue #22977: Remove unconditional import of ctypes.
Serhiy Storchaka [Mon, 6 Apr 2015 17:37:34 +0000 (20:37 +0300)]
Issue #22977: Remove unconditional import of ctypes.

9 years agomerge 3.4 (#23875)
Benjamin Peterson [Mon, 6 Apr 2015 17:06:21 +0000 (13:06 -0400)]
merge 3.4 (#23875)

9 years agofix building without threads (closes #23877)
Benjamin Peterson [Mon, 6 Apr 2015 13:59:23 +0000 (09:59 -0400)]
fix building without threads (closes #23877)

9 years agoMerge doc change from 3.4
Tim Golden [Mon, 6 Apr 2015 10:06:18 +0000 (11:06 +0100)]
Merge doc change from 3.4

9 years ago#3566: Clean up handling of remote server disconnects.
R David Murray [Sun, 5 Apr 2015 23:26:29 +0000 (19:26 -0400)]
#3566: Clean up handling of remote server disconnects.

This changeset does two things: introduces a new RemoteDisconnected exception
(that subclasses ConnectionResetError and BadStatusLine) so that a remote
server disconnection can be detected by client code (and provides a better
error message for debugging purposes), and ensures that the client socket is
closed if a ConnectionError happens, so that the automatic re-connection code
can work if the application handles the error and continues on.

Tests are added that confirm that a connection is re-used or not re-used
as appropriate to the various combinations of protocol version and headers.

Patch by Martin Panter, reviewed by Demian Brecht.  (Tweaked only slightly by
me.)

9 years agomerge 3.4 (#23872)
Benjamin Peterson [Sun, 5 Apr 2015 14:03:23 +0000 (10:03 -0400)]
merge 3.4 (#23872)

9 years agofix extended command syntax (closes #23872)
Benjamin Peterson [Sun, 5 Apr 2015 14:01:48 +0000 (10:01 -0400)]
fix extended command syntax (closes #23872)

9 years agoUpdated pprint examples in according to issue #19105.
Serhiy Storchaka [Sun, 5 Apr 2015 05:22:41 +0000 (08:22 +0300)]
Updated pprint examples in according to issue #19105.

9 years agoIssue #23501: #include "clinic/posixmodule.c.h" was in the section skipped on Windows.
Serhiy Storchaka [Sat, 4 Apr 2015 20:35:52 +0000 (23:35 +0300)]
Issue #23501: #include "clinic/posixmodule.c.h" was in the section skipped on Windows.

9 years agofix refleak in deque_concat
Benjamin Peterson [Sat, 4 Apr 2015 14:52:36 +0000 (10:52 -0400)]
fix refleak in deque_concat

9 years agoIssue #23466: Fixed expected error message in test_format.
Serhiy Storchaka [Sat, 4 Apr 2015 14:29:28 +0000 (17:29 +0300)]
Issue #23466: Fixed expected error message in test_format.

9 years agoFixed the array module broken in issue #23492.
Serhiy Storchaka [Sat, 4 Apr 2015 14:06:55 +0000 (17:06 +0300)]
Fixed the array module broken in issue #23492.
array_array_frombytes() is used in other functions, but it's signature was
changed. Closes issue #23866.

9 years agoFixed test_enum for issue #15582.
Serhiy Storchaka [Sat, 4 Apr 2015 09:48:04 +0000 (12:48 +0300)]
Fixed test_enum for issue #15582.

9 years agoIssue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
Serhiy Storchaka [Sat, 4 Apr 2015 09:44:30 +0000 (12:44 +0300)]
Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
returns bool.  tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj).  tkinter.BooleanVar.get() now always returns bool.

9 years agoIssue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
Serhiy Storchaka [Sat, 4 Apr 2015 09:43:01 +0000 (12:43 +0300)]
Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
returns bool.  tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj).  tkinter.BooleanVar.get() now always returns bool.

9 years agoIssue #22831: Use "with" to avoid possible fd leaks.
Serhiy Storchaka [Sat, 4 Apr 2015 08:01:02 +0000 (11:01 +0300)]
Issue #22831: Use "with" to avoid possible fd leaks.

9 years agoOpen files in binary mode to avoid newlines transformation.
Serhiy Storchaka [Sat, 4 Apr 2015 07:36:50 +0000 (10:36 +0300)]
Open files in binary mode to avoid newlines transformation.

9 years agoOpen files in binary mode to avoid newlines transformation.
Serhiy Storchaka [Sat, 4 Apr 2015 07:36:25 +0000 (10:36 +0300)]
Open files in binary mode to avoid newlines transformation.

9 years agoIssue #10590: xml.sax.parseString() now supports string argument.
Serhiy Storchaka [Sat, 4 Apr 2015 07:12:26 +0000 (10:12 +0300)]
Issue #10590: xml.sax.parseString() now supports string argument.

9 years agoIssue #23338: Fixed formatting ctypes error messages on Cygwin.
Serhiy Storchaka [Sat, 4 Apr 2015 07:06:58 +0000 (10:06 +0300)]
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.

9 years agoIssue #23338: Fixed formatting ctypes error messages on Cygwin.
Serhiy Storchaka [Sat, 4 Apr 2015 07:05:48 +0000 (10:05 +0300)]
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.

9 years agoIssue #23825: Fixed test_idle under -OO.
Serhiy Storchaka [Sat, 4 Apr 2015 06:48:17 +0000 (09:48 +0300)]
Issue #23825: Fixed test_idle under -OO.

9 years agoIssue #23825: Fixed test_idle under -OO.
Serhiy Storchaka [Sat, 4 Apr 2015 06:47:31 +0000 (09:47 +0300)]
Issue #23825: Fixed test_idle under -OO.

9 years agoMoved Misc/NEWS entries not included in 3.5.0 alpha 3 to correct section.
Serhiy Storchaka [Sat, 4 Apr 2015 06:38:17 +0000 (09:38 +0300)]
Moved Misc/NEWS entries not included in 3.5.0 alpha 3 to correct section.

9 years agoIssue #23492: Argument Clinic now generates argument parsing code with
Serhiy Storchaka [Fri, 3 Apr 2015 21:12:11 +0000 (00:12 +0300)]
Issue #23492: Argument Clinic now generates argument parsing code with
PyArg_Parse instead of PyArg_ParseTuple if possible.

9 years agoIssue #23501: Argumen Clinic now generates code into separate files by default.
Serhiy Storchaka [Fri, 3 Apr 2015 20:53:51 +0000 (23:53 +0300)]
Issue #23501: Argumen Clinic now generates code into separate files by default.

9 years agoIssue #23500: Argument Clinic is now smarter about generating the "#ifndef"
Larry Hastings [Fri, 3 Apr 2015 20:09:02 +0000 (13:09 -0700)]
Issue #23500: Argument Clinic is now smarter about generating the "#ifndef"
(empty) definition of the methoddef macro: it's only generated once, even
if Argument Clinic processes the same symbol multiple times, and it's emitted
at the end of all processing rather than immediately after the first use.

9 years agoIssue #15582: inspect.getdoc() now follows inheritance chains.
Serhiy Storchaka [Fri, 3 Apr 2015 19:38:53 +0000 (22:38 +0300)]
Issue #15582: inspect.getdoc() now follows inheritance chains.

9 years agoIssue #23466: Raised OverflowError if %c argument is out of range.
Serhiy Storchaka [Fri, 3 Apr 2015 17:53:46 +0000 (20:53 +0300)]
Issue #23466: Raised OverflowError if %c argument is out of range.

9 years agoRemoved trailing whitespaces in miscalenous files.
Serhiy Storchaka [Fri, 3 Apr 2015 16:42:32 +0000 (19:42 +0300)]
Removed trailing whitespaces in miscalenous files.

9 years agoEscaped backslashes in docstrings.
Serhiy Storchaka [Fri, 3 Apr 2015 15:13:23 +0000 (18:13 +0300)]
Escaped backslashes in docstrings.

9 years agoEscaped backslashes in docstrings.
Serhiy Storchaka [Fri, 3 Apr 2015 15:12:41 +0000 (18:12 +0300)]
Escaped backslashes in docstrings.

9 years agoMerge 3.4 (asyncio doc)
Victor Stinner [Fri, 3 Apr 2015 15:10:17 +0000 (17:10 +0200)]
Merge 3.4 (asyncio doc)

9 years agoIssue #23219: Update asyncio.wait_for() documentation
Victor Stinner [Fri, 3 Apr 2015 15:08:19 +0000 (17:08 +0200)]
Issue #23219: Update asyncio.wait_for() documentation

the wait is cancelled, the future *fut* is now also cancelled.

9 years agoGot rid of warnings "suggest braces around empty body in an ‘else’ statement"
Serhiy Storchaka [Fri, 3 Apr 2015 12:24:33 +0000 (15:24 +0300)]
Got rid of warnings "suggest braces around empty body in an ‘else’ statement"
in Parser/pgen.c.

9 years agoIssue #22351. MockSslTests tests in test_nntplib now are reported if skipped.
Serhiy Storchaka [Fri, 3 Apr 2015 12:02:40 +0000 (15:02 +0300)]
Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped.

9 years agoIssue #22351. MockSslTests tests in test_nntplib now are reported if skipped.
Serhiy Storchaka [Fri, 3 Apr 2015 12:02:20 +0000 (15:02 +0300)]
Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped.

9 years agoIssue #22351: Fix test_nntplib if the ssl module is missing
Victor Stinner [Fri, 3 Apr 2015 09:06:40 +0000 (11:06 +0200)]
Issue #22351: Fix test_nntplib if the ssl module is missing

@unittest.skipUnless(ssl, '...') doesn't work because the class body uses the
nntplib.NNTP_SSL attribute which doesn't exist.

9 years agoIssue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().
Serhiy Storchaka [Thu, 2 Apr 2015 20:05:57 +0000 (23:05 +0300)]
Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().

9 years agoIssue #23853: Cleanup _ssl.c
Victor Stinner [Thu, 2 Apr 2015 19:28:28 +0000 (21:28 +0200)]
Issue #23853: Cleanup _ssl.c

* Rename check_socket_and_wait_for_timeout() to PySSL_select()
* PySSL_select() is now clearly splitted betwen poll() and select()
* Add empty lines for readability

9 years agoIssue #23834: Simplify timeout handling
Victor Stinner [Fri, 3 Apr 2015 11:22:27 +0000 (13:22 +0200)]
Issue #23834: Simplify timeout handling

* Use the new _PyTime_FromSeconds() function to set the timeout to -1 second
  for socket.settimeout(None). It avoids a special case in internal_select()
  because of a rounding issue: -1 nanosecond is rounded to 0 millisecond which
  means non-blocking, instead of blocking.
* Check if the interval the negative in sock_call_ex() instead of doing the
  check in internal_select(). sock_call_ex() remembers if the socket has a
  timeout or not, which avoids a race condition if the timeout is modified in a
  different thread.

9 years agoIssue #22117: Add a new _PyTime_FromSeconds() function
Victor Stinner [Fri, 3 Apr 2015 11:10:54 +0000 (13:10 +0200)]
Issue #22117: Add a new _PyTime_FromSeconds() function

Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).

9 years agoMerge 3.4 (test_nntplib)
Victor Stinner [Fri, 3 Apr 2015 09:09:08 +0000 (11:09 +0200)]
Merge 3.4 (test_nntplib)

9 years agoIssue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().
Serhiy Storchaka [Thu, 2 Apr 2015 20:07:19 +0000 (23:07 +0300)]
Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().

9 years agoIssue #2175: SAX parsers now support a character stream of InputSource object.
Serhiy Storchaka [Thu, 2 Apr 2015 18:00:13 +0000 (21:00 +0300)]
Issue #2175: SAX parsers now support a character stream of InputSource object.

9 years agoIssue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Serhiy Storchaka [Thu, 2 Apr 2015 17:57:20 +0000 (20:57 +0300)]
Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Made test XML files non-ASCII.

9 years agoIssue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Serhiy Storchaka [Thu, 2 Apr 2015 17:55:59 +0000 (20:55 +0300)]
Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Made test XML files non-ASCII.

9 years agoIssue #16840: Fixed test_tcl for Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 17:07:24 +0000 (20:07 +0300)]
Issue #16840: Fixed test_tcl for Tcl < 8.5.

9 years agoIssue #16840: Fixed test_tcl for Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 17:07:09 +0000 (20:07 +0300)]
Issue #16840: Fixed test_tcl for Tcl < 8.5.