Benjamin Peterson
6c22e65773
merge 3.4 ( #22788 )
2014-11-23 20:38:13 -06:00
Benjamin Peterson
43052a14c1
add context parameter to HTTPHandler ( closes #22788 )
2014-11-23 20:36:44 -06:00
Benjamin Peterson
f9284ae8ed
merge 3.4 ( #22921 )
2014-11-23 17:06:39 -06:00
Benjamin Peterson
7243b574e5
don't require OpenSSL SNI to pass hostname to ssl functions ( #22921 )
...
Patch by Donald Stufft.
2014-11-23 17:04:34 -06:00
Antoine Pitrou
b9079c81dd
Issue #22894 : TestCase.subTest() would cause the test suite to be stopped when in failfast mode, even in the absence of failures.
2014-11-23 15:56:41 +01:00
Antoine Pitrou
18f22989dd
Issue #22894 : TestCase.subTest() would cause the test suite to be stopped when in failfast mode, even in the absence of failures.
2014-11-23 15:55:11 +01:00
Raymond Hettinger
bb6c0aaebf
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
2014-11-22 22:14:41 -08:00
Raymond Hettinger
828d932a2c
PEP 479: Don't let StopIteration bubble out of calls to next() inside a generator.
2014-11-22 21:56:23 -08:00
Zachary Ware
513112b229
Issue #22834 : cwd can't not exist on Windows, skip the test
2014-11-22 17:03:46 -06:00
Serhiy Storchaka
fc9fdedd09
Issue #19720 : Suppressed context for some exceptions in importlib.
2014-11-21 21:56:57 +02:00
Serhiy Storchaka
525d5aeaae
Issue #17293 : socket.gethostbyname() can raise an exception of FreeBSD.
2014-11-21 21:55:39 +02:00
Serhiy Storchaka
c4464052d9
Issue #19720 : Suppressed context for some exceptions in importlib.
2014-11-21 20:33:57 +02:00
Brett Cannon
b6e2556d8f
Issue #22834 : Have import suppress FileNotFoundError when the current
...
working directory no longer exists.
Thanks to Martin Panter for the bug report.
2014-11-21 12:19:28 -05:00
Antoine Pitrou
b1e36073cd
Issue #22796 : HTTP cookie parsing is now stricter, in order to protect against potential injection attacks.
2014-11-21 01:20:57 +01:00
Victor Stinner
35830270e1
(Merge 3.4) asyncio: BaseSelectorEventLoop.close() now closes the self-pipe
...
before calling the parent close() method. If the event loop is already closed,
the self-pipe is not unregistered from the selector.
2014-11-21 00:23:59 +01:00
Victor Stinner
5e63120f8d
asyncio: BaseSelectorEventLoop.close() now closes the self-pipe before calling
...
the parent close() method. If the event loop is already closed, the self-pipe
is not unregistered from the selector.
2014-11-21 00:23:27 +01:00
Victor Stinner
bca6ae67d6
Merge 3.4 (asyncio)
2014-11-20 15:04:31 +01:00
Victor Stinner
2d99d93d11
asyncio: Coroutine objects are now rejected with a TypeError by the following
...
functions:
* add_signal_handler()
* call_at()
* call_later()
* call_soon()
* call_soon_threadsafe()
* run_in_executor()
Fix also the error message of add_signal_handler() (fix the name of the
function).
2014-11-20 15:03:52 +01:00
Victor Stinner
8beadd3d96
Merge with 3.4 (asyncio)
2014-11-20 14:19:49 +01:00
Victor Stinner
c1ad35aae8
asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode
2014-11-20 14:19:23 +01:00
Victor Stinner
662fd5f68e
asyncio: Fix formatting of the "Future exception was never retrieved" in
...
release mode
2014-11-20 14:16:31 +01:00
Nick Coghlan
d600951748
Issue #22869 : Split pythonrun into two modules
...
- interpreter startup and shutdown code moved to a new
pylifecycle.c module
- Py_OptimizeFlag moved into the new module with the other
global flags
2014-11-20 21:39:37 +10:00
Serhiy Storchaka
66fb349d6c
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
...
Patch by David Watson.
2014-11-19 13:21:40 +02:00
Serhiy Storchaka
abde2c1d25
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
...
Patch by David Watson.
2014-11-19 13:21:13 +02:00
Serhiy Storchaka
a9568bb44a
Issue #20604 : Added missed invalid mode in error message of socket.makefile().
...
Based on patch by Franck Michea.
2014-11-19 12:34:07 +02:00
Serhiy Storchaka
fca2fc090c
Issue #20604 : Added missed invalid mode in error message of socket.makefile().
...
Based on patch by Franck Michea.
2014-11-19 12:33:40 +02:00
Antoine Pitrou
1d922d0ce9
Close #22370 : Windows detection in pathlib is now more robust.
2014-11-19 00:33:08 +01:00
Antoine Pitrou
db118f5db7
Close #22370 : Windows detection in pathlib is now more robust.
2014-11-19 00:32:08 +01:00
Serhiy Storchaka
0ff742ce2b
Issue #20662 : Argspec now is escaped in html output of pydoc.
2014-11-17 23:48:35 +02:00
Serhiy Storchaka
66dd4aaa96
Issue #20662 : Argspec now is escaped in html output of pydoc.
2014-11-17 23:48:02 +02:00
Raymond Hettinger
a34cd0c781
Issue #22824 : Simplify reprlib output format for empty arrays
2014-11-15 10:58:58 -08:00
Serhiy Storchaka
42826566f5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:22:27 +02:00
Serhiy Storchaka
030e92d1a5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:37 +02:00
Guido van Rossum
59f0682190
- Issue #22841 : Reject coroutines in asyncio add_signal_handler().
...
Patch by Ludovic.Gasc.
2014-11-14 11:48:37 -08:00
Guido van Rossum
e36fcde383
- Issue #22841 : Reject coroutines in asyncio add_signal_handler().
...
Patch by Ludovic.Gasc.
2014-11-14 11:45:47 -08:00
Benjamin Peterson
6fd113c26c
add space
2014-11-12 10:23:44 -05:00
Benjamin Peterson
994c7f76a3
merge 3.4 ( #22849 )
2014-11-12 10:23:35 -05:00
Benjamin Peterson
6c14f23100
fix possible double free in TextIOWrapper.__init__ ( closes #22849 )
2014-11-12 10:19:46 -05:00
Nick Coghlan
c216c48699
Close #19494 : add urrlib.request.HTTPBasicPriorAuthHandler
...
This auth handler adds the Authorization header to the first
HTTP request rather than waiting for a HTTP 401 Unauthorized
response from the server as the default HTTPBasicAuthHandler
does.
This allows working with websites like https://api.github.com which do
not follow the strict interpretation of RFC, but more the dicta in the
end of section 2 of RFC 2617:
> A client MAY preemptively send the corresponding Authorization
> header with requests for resources in that space without receipt
> of another challenge from the server. Similarly, when a client
> sends a request to a proxy, it may reuse a userid and password in
> the Proxy-Authorization header field without receiving another
> challenge from the proxy server. See section 4 for security
> considerations associated with Basic authentication.
Patch by Matej Cepl.
2014-11-12 23:33:50 +10:00
Serhiy Storchaka
ab14088141
Minor code clean up and improvements in the re module.
2014-11-11 21:13:28 +02:00
Donald Stufft
9a64ccb997
Merge - Upgrade setuptools to 7.0
2014-11-11 11:06:49 -05:00
Donald Stufft
dfede95a06
Upgrade setuptools to 7.0
2014-11-11 11:01:09 -05:00
Serhiy Storchaka
1b2004f059
Fixed error position for the backslash at the end of regex pattern.
2014-11-10 18:28:53 +02:00
Serhiy Storchaka
b99c132bd9
Fixed AttributeError when the regular expression starts from illegal escape.
2014-11-10 14:38:16 +02:00
Serhiy Storchaka
ce40e1a081
Fixed IDLE tests after changing re error messages (issue #22578 ).
2014-11-10 14:18:03 +02:00
Serhiy Storchaka
ad446d57a9
Issue #22578 : Added attributes to the re.error class.
2014-11-10 13:49:00 +02:00
Serhiy Storchaka
eb99e51574
Got rid of the array module dependency in the re module.
...
The re module could be used during building before array is built.
2014-11-10 13:25:14 +02:00
Serhiy Storchaka
19e9158497
Got rid of the array module dependency in the re module.
...
The re module could be used during building before array is built.
2014-11-10 13:24:47 +02:00
Serhiy Storchaka
5619ab926b
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:43:14 +02:00
Serhiy Storchaka
0c938f6d24
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:16 +02:00