Ned Deily
1e012e6c7f
Issue #23211 : Workaround test_logging failure on some OS X 10.6 systems:
...
getaddrinfo("localhost") can fail depending on the name server configuration,
use "127.0.0.0" instead.
2015-01-17 16:57:19 -08:00
Antoine Pitrou
1285c9b782
Issue #21817 : When an exception is raised in a task submitted to a ProcessPoolExecutor, the remote traceback is now displayed in the parent process.
...
Patch by Claudiu Popa.
2015-01-17 20:02:14 +01:00
Antoine Pitrou
26795baaa8
Issue #15955 : Add an option to limit output size when decompressing LZMA data.
...
Patch by Nikolaus Rath and Martin Panter.
2015-01-17 16:22:18 +01:00
Zachary Ware
e262074ede
Merge with 3.4 ( #23256 )
2015-01-17 08:53:09 -06:00
Zachary Ware
465b057f91
Closes #23256 : Avoid a crash in test_ctypes
...
Only happened with oddly capitalized debug executables on Windows.
Patch by Claudiu Popa.
2015-01-17 08:50:42 -06:00
Benjamin Peterson
5b883296f6
merge 3.4 ( #22986 )
2015-01-16 20:46:37 -05:00
Benjamin Peterson
bd341629b0
capitialize "HttpOnly" and "Secure" as they appear in the standard and other impls ( closes #23250 )
...
Patch by Jon Dufresne.
2015-01-16 20:43:55 -05:00
Victor Stinner
5f9fd1dd79
Merge 3.4 (asyncio)
2015-01-15 22:53:21 +01:00
Victor Stinner
f716d8b7a5
Issue #22685 : Fix test_pause_reading() of asyncio/test_subprocess
...
Override the connect_read_pipe() method of the loop to mock immediatly
pause_reading() and resume_reading() methods.
The test failed randomly on FreeBSD 9 buildbot and on Windows using trollius.
2015-01-15 22:52:59 +01:00
Victor Stinner
0caf060056
Merge 3.4 (asyncio)
2015-01-15 21:50:48 +01:00
Victor Stinner
406204c8c2
Backout changeset 6ab2575bc12b
...
StreamWriter: close() now clears the reference to the transport
StreamWriter now raises an exception if it is closed: write(), writelines(),
write_eof(), can_write_eof(), get_extra_info(), drain().
2015-01-15 21:50:19 +01:00
Victor Stinner
a39eb0f42b
Merge 3.4 (asyncio)
2015-01-15 16:29:23 +01:00
Victor Stinner
922bc2ca12
Closes #23219 : cancelling asyncio.wait_for() now cancels the task
2015-01-15 16:29:10 +01:00
Victor Stinner
9fef5244eb
Merge 3.4 (asyncio)
2015-01-15 14:25:08 +01:00
Victor Stinner
ab8848bc2a
asyncio: Close transports in tests
...
* Use test_utils.run_briefly() to execute pending calls to really close
transports
* sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport
* pipe test: the test doesn't close explicitly the PipeHandle, so ignore
the warning instead
* test_popen: use the context manager ("with p:") to explicitly close pipes
2015-01-15 14:24:55 +01:00
Victor Stinner
4bf22e033e
asyncio: Close the transport on subprocess creation failure
2015-01-15 14:24:22 +01:00
Victor Stinner
d021c1d395
Merge 3.4 (asyncio)
2015-01-15 13:41:01 +01:00
Victor Stinner
fcd58de78f
asyncio: Fix _ProactorBasePipeTransport.close()
...
Set the _read_fut attribute to None after cancelling it.
This change should fix a race condition with
_ProactorWritePipeTransport._pipe_closed().
2015-01-15 13:40:27 +01:00
Victor Stinner
79c93ba47b
asyncio: Fix _ProactorBasePipeTransport.__repr__()
...
Check if the _sock attribute is None to check if the transport is closed.
2015-01-15 13:32:28 +01:00
Victor Stinner
7d78d0d91c
Merge 3.4 (asyncio)
2015-01-15 13:23:36 +01:00
Victor Stinner
02392c9282
Issue #23243 : Close explicitly transports in asyncio tests
2015-01-15 13:18:32 +01:00
Victor Stinner
33cb0396e8
Issue #23243 : Close explicitly event loops in asyncio tests
2015-01-15 13:17:34 +01:00
Victor Stinner
41ed958ee6
Issue #23243 : Fix asyncio._UnixWritePipeTransport.close()
...
Do nothing if the transport is already closed. Before it was not possible to
close the transport twice.
2015-01-15 13:16:50 +01:00
Victor Stinner
7e222f411c
SSLProtocol: set the _transport attribute in the constructor
2015-01-15 13:16:27 +01:00
Victor Stinner
791009bb89
Issue #23242 : asyncio.SubprocessStreamProtocol now closes the subprocess
...
transport at subprocess exit.
Clear also its reference to the transport.
2015-01-15 13:16:02 +01:00
Victor Stinner
fe47e66792
Merge 3.4 (asyncio)
2015-01-15 09:44:24 +01:00
Victor Stinner
72bdefb086
Issue #22560 : Fix typo: call -> call_soon
2015-01-15 09:44:13 +01:00
Victor Stinner
042dad7232
Issue #22560 : Fix SSLProtocol._on_handshake_complete()
...
Don't call immediatly self._process_write_backlog() but schedule the call using
call_soon(). _on_handshake_complete() can be called indirectly from
_process_write_backlog(), and _process_write_backlog() is not reentrant.
2015-01-15 09:41:48 +01:00
Victor Stinner
516aaa116a
Merge 3.4 (asyncio)
2015-01-15 09:35:29 +01:00
Victor Stinner
e7a35717d2
StreamWriter: close() now clears the reference to the transport
...
StreamWriter now raises an exception if it is closed: write(), writelines(),
write_eof(), can_write_eof(), get_extra_info(), drain().
2015-01-15 09:33:50 +01:00
Benjamin Peterson
71f1c5c496
merge 3.4 ( #23063 )
2015-01-15 00:00:16 -05:00
Benjamin Peterson
562b7cbff9
fix parsing reST with code or code-block directives ( closes #23063 )
...
Patch by Marc Abramowitz.
2015-01-14 23:56:35 -05:00
Victor Stinner
93e42c03b7
Merge 3.4 (asyncio)
2015-01-15 00:05:18 +01:00
Victor Stinner
29ad0111bd
asyncio: sync with Tulip
...
* PipeHandle now uses None instead of -1 for a closed handle
* Sort imports in windows_utils.
* Fix test_events on Python older than 3.5. Skip SSL tests on the
ProactorEventLoop if ssl.MemoryIO is missing
* Fix BaseEventLoop._create_connection_transport(). Close the transport if the
creation of the transport (if the waiter) gets an exception.
* _ProactorBasePipeTransport now sets _sock to None when the transport is
closed.
* Fix BaseSubprocessTransport.close(). Ignore pipes for which the protocol is
not set yet (still equal to None).
* TestLoop.close() now calls the close() method of the parent class
(BaseEventLoop).
* Cleanup BaseSelectorEventLoop: create the protocol on a separated line for
readability and ease debugging.
* Fix BaseSubprocessTransport._kill_wait(). Set the _returncode attribute, so
close() doesn't try to terminate the process.
* Tests: explicitly close event loops and transports
* UNIX pipe transports: add closed/closing in repr(). Add "closed" or "closing"
state in the __repr__() method of _UnixReadPipeTransport and
_UnixWritePipeTransport classes.
2015-01-15 00:04:21 +01:00
Victor Stinner
24be20ac1c
Merge 3.4 (asyncio)
2015-01-14 17:13:43 +01:00
Victor Stinner
b92626df5c
Issue #23197 : On SSL handshake failure on matching hostname, check if the
...
waiter is cancelled before setting its exception.
2015-01-14 17:13:28 +01:00
Victor Stinner
a5e881d2e8
Closes #23234 : Refactor subprocess
...
Use new OSError exceptions, factorize stdin.write() code.
2015-01-14 17:07:59 +01:00
Victor Stinner
f664118817
Merge 3.4 (asyncio)
2015-01-14 17:00:29 +01:00
Victor Stinner
177e9f0855
Issue #23197 , asyncio: On SSL handshake failure, check if the waiter is
...
cancelled before setting its exception.
* Add unit tests for this case.
* Cleanup also sslproto.py
2015-01-14 16:56:20 +01:00
Raymond Hettinger
1a8ada89f9
No need to rebuild a constant dictionary on every call. Move convert mapping to module level.
2015-01-13 22:57:35 -08:00
Victor Stinner
e54dd0b92b
Merge 3.4 (asyncio)
2015-01-14 02:13:51 +01:00
Victor Stinner
f651a60407
Python issue #23173 : sync with Tulip
...
* If an exception is raised during the creation of a subprocess, kill the
subprocess (close pipes, kill and read the return status). Log an error in
such case.
* Fix SubprocessStreamProtocol.connection_made() to handle cancelled waiter.
Add unit test cancelling subprocess methods.
2015-01-14 02:10:33 +01:00
Victor Stinner
9f5b6907ab
Merge 3.4 (asyncio)
2015-01-14 00:54:00 +01:00
Victor Stinner
c2c12e433a
Issue #23198 : Reactor asyncio.StreamReader
...
- Add a new _wakeup_waiter() method
- Replace _create_waiter() method with a _wait_for_data() coroutine function
- Use the value None instead of True or False to wake up the waiter
2015-01-14 00:53:37 +01:00
Victor Stinner
81a04f7ad4
Merge 3.4 (asyncio: new SSL implementation)
2015-01-14 00:19:55 +01:00
Victor Stinner
231b404cb0
Issue #22560 : New SSL implementation based on ssl.MemoryBIO
...
The new SSL implementation is based on the new ssl.MemoryBIO which is only
available on Python 3.5. On Python 3.4 and older, the legacy SSL implementation
(using SSL_write, SSL_read, etc.) is used. The proactor event loop only
supports the new implementation.
The new asyncio.sslproto module adds _SSLPipe, SSLProtocol and
_SSLProtocolTransport classes. _SSLPipe allows to "wrap" or "unwrap" a socket
(switch between cleartext and SSL/TLS).
Patch written by Antoine Pitrou. sslproto.py is based on gruvi/ssl.py of the
gruvi project written by Geert Jansen.
This change adds SSL support to ProactorEventLoop on Python 3.5 and newer!
It becomes also possible to implement STARTTTLS: switch a cleartext socket to
SSL.
2015-01-14 00:19:09 +01:00
Victor Stinner
7d5a95627b
Merge 3.4 (asyncio)
2015-01-13 16:13:36 +01:00
Victor Stinner
9036e49ba1
Tulip issue 184: Fix test_pipe() on Windows
...
Pass explicitly the event loop to StreamReaderProtocol.
2015-01-13 16:13:06 +01:00
Victor Stinner
b86a96802b
Issue #22922 : Fix ProactorEventLoop.close()
...
Close the IocpProactor before closing the event loop. IocpProactor.close() can
call loop.call_soon(), which is forbidden when the event loop is closed.
2015-01-13 16:11:19 +01:00
Benjamin Peterson
610bc6a211
merge 3.4 ( #23221 )
2015-01-13 09:20:31 -05:00
Benjamin Peterson
82f34ada45
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Victor Stinner
458fc6f98c
Issue #23209 , #23225 : selectors.BaseSelector.get_key() now raises a
...
RuntimeError if the selector is closed. And selectors.BaseSelector.close() now
clears its internal reference to the selector mapping to break a reference
cycle. Initial patch written by Martin Richard.
2015-01-13 10:00:55 +01:00
Victor Stinner
38dc250521
Issue #23209 , #23225 : selectors.BaseSelector.close() now clears its internal
...
reference to the selector mapping to break a reference cycle. Initial patch
written by Martin Richard.
2015-01-13 09:58:33 +01:00
Antoine Pitrou
17cba7daf5
Issue #19777 : Provide a home() classmethod on Path objects.
...
Contributed by Victor Salgado and Mayank Tripathi.
2015-01-12 21:03:41 +01:00
Donald Stufft
2b4ec1ce8a
Merged 3.4 into default
2015-01-11 15:53:02 -05:00
Donald Stufft
d9fe22ce9b
Update setuptools to 11.3.1
2015-01-11 15:51:11 -05:00
Benjamin Peterson
c114e7db60
remove extra definite article
2015-01-11 15:22:07 -05:00
Antoine Pitrou
dc3eaa80d4
Issue #23206 : Make ``json.dumps(..., ensure_ascii=False)`` as fast as the default case of ``ensure_ascii=True``. Patch by Naoki Inada.
2015-01-11 16:41:01 +01:00
Mark Dickinson
a5d0c7c2fd
Issue #23185 : add math.inf and math.nan constants.
2015-01-11 11:55:29 +00:00
Serhiy Storchaka
845b14cc8e
Removed duplicated dict entries.
2015-01-11 12:48:17 +02:00
Victor Stinner
e969439862
Issue #19776 : Fix test_pathlib.test_expanduser()
...
Skip users with an empty home directory.
2015-01-10 09:00:20 +01:00
Victor Stinner
c50a9c1617
(Merge 3.4) Issue #23209 : Revert change on selectors, test_selectors failed.
2015-01-09 21:57:19 +01:00
Victor Stinner
686fe6e156
Issue #23209 : Revert change on selectors, test_selectors failed.
2015-01-09 21:56:28 +01:00
Victor Stinner
6a825a8314
Merge 3.4 (asyncio, selectors)
2015-01-09 21:35:03 +01:00
Victor Stinner
587feb19e8
Issue #23209 : Break some reference cycles in asyncio. Patch written by Martin
...
Richard.
2015-01-09 21:34:27 +01:00
Victor Stinner
3cd440df22
Merge 3.4 (asyncio)
2015-01-09 21:32:24 +01:00
Victor Stinner
70db9e428a
asyncio: sync with Tulip
...
* Tulip issue 184: FlowControlMixin constructor now get the event loop if the
loop parameter is not set. Add unit tests to ensure that constructor of
StreamReader and StreamReaderProtocol classes get the event loop.
* Remove outdated TODO/XXX
2015-01-09 21:32:05 +01:00
Brett Cannon
02d8454002
Issue #23014 : Make importlib.abc.Loader.create_module() required when
...
importlib.abc.Loader.exec_module() is also defined.
Before this change, create_module() was optional **and** could return
None to trigger default semantics. This change now reduces the
options for choosing default semantics to one and in the most
backporting-friendly way (define create_module() to return None).
2015-01-09 11:39:21 -05:00
Victor Stinner
b551fac136
Merge 3.4 (asyncio)
2015-01-09 01:43:04 +01:00
Victor Stinner
3531d9044d
asyncio: sync with Tulip
...
* Document why set_result() calls are safe
* Cleanup gather(). Use public methods instead of hacks to consume the
exception of a future.
* sock_connect(): pass directly the fd to _sock_connect_done instead of the
socket.
2015-01-09 01:42:52 +01:00
Victor Stinner
53a6d74fbf
selectors: truncate to 80 characters
2015-01-09 00:13:39 +01:00
Victor Stinner
12985b5da7
Merge 3.4 (asyncio)
2015-01-09 00:09:35 +01:00
Victor Stinner
15cc678d89
asyncio: Truncate to 80 columns
2015-01-09 00:09:10 +01:00
Victor Stinner
540373310e
Merge 3.4 (asyncio)
2015-01-08 12:07:00 +01:00
Victor Stinner
8d9c145f61
asyncio: _make_ssl_transport: make the waiter parameter optional
2015-01-08 12:06:36 +01:00
Terry Jan Reedy
ef50fdf138
Merge with 3.4
2015-01-07 23:49:06 -05:00
Terry Jan Reedy
84d64a9c02
Issue #23184 : delete unused idlelib file.
2015-01-07 23:48:46 -05:00
Benjamin Peterson
15042921ad
enable cert validation in test
2015-01-07 22:12:43 -06:00
Benjamin Peterson
23ef9fac16
trying again
2015-01-07 21:21:34 -06:00
Benjamin Peterson
e6838e08ef
reorder cipher prefs
2015-01-07 20:52:40 -06:00
Benjamin Peterson
44c77791ab
drop 256
2015-01-07 20:30:59 -06:00
Benjamin Peterson
359f2982f4
try using AES256
2015-01-07 20:03:27 -06:00
Benjamin Peterson
8791d697e0
fix assertions after ciphers were changed
2015-01-07 14:29:45 -06:00
Benjamin Peterson
f78b78aed4
rc4 is a long time favorite
2015-01-07 14:21:22 -06:00
Benjamin Peterson
438a8db763
everyone should support AES ciphers
2015-01-07 13:28:40 -06:00
Benjamin Peterson
9f6eceab46
include some more ciphers
2015-01-07 12:59:20 -06:00
Benjamin Peterson
aacd524118
force test server to speak tlsv1
2015-01-07 11:42:38 -06:00
Benjamin Peterson
e27a421354
remove apparently wrong assertion about des bit size
2015-01-07 11:33:51 -06:00
Benjamin Peterson
5318c7aa59
explain None can be returned
2015-01-07 11:26:50 -06:00
Benjamin Peterson
4cb17812d9
expose the client's cipher suites from the handshake ( closes #23186 )
2015-01-07 11:14:26 -06:00
Raymond Hettinger
e5db863c22
Minor speed-up. Use local variable instead of a global lookup.
2015-01-06 22:16:10 -08:00
Nick Coghlan
582acb75e9
Merge issue 19548 changes from 3.4
2015-01-07 00:37:01 +10:00
Nick Coghlan
b9fdb7a452
Issue 19548: update codecs module documentation
...
- clarified the distinction between text encodings and other codecs
- clarified relationship with builtin open and the io module
- consolidated documentation of error handlers into one section
- clarified type constraints of some behaviours
- added tests for some of the new statements in the docs
2015-01-07 00:22:00 +10:00
Victor Stinner
5d575399bc
Issue #23145 : regrtest now shows errors and raises an exception if
...
loader.loadTestsFromModule() logged errors.
2015-01-06 14:05:03 +01:00
Victor Stinner
fcfed19913
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:54:58 +01:00
Victor Stinner
9d01717f37
Issue #20896 , #22935 : The ssl.get_server_certificate() function now uses the
...
ssl.PROTOCOL_SSLv23 protocol by default, not ssl.PROTOCOL_SSLv3, for maximum
compatibility and support platforms where ssl.PROTOCOL_SSLv3 support is
disabled.
2015-01-06 12:21:26 +01:00
Vinay Sajip
02980426d0
Closes #21980 : Added a __repr__ for LogRecord.
2015-01-06 11:19:42 +00:00
Vinay Sajip
2fb1efe4f4
Closes #23151 : Removed unnecessary initialization.
2015-01-06 10:56:09 +00:00
Victor Stinner
789b805700
test_ssl: add more debug to investigate test_openssl_version() failure on
...
OpenBSD with LibreSSL.
2015-01-06 11:51:06 +01:00
Raymond Hettinger
57a3786a62
merge
2015-01-05 22:00:08 -08:00
Raymond Hettinger
0603d3049e
Issue #23132 : Mitigate regression in speed and clarity in functools.total_ordering.
2015-01-05 21:52:10 -08:00
Victor Stinner
4ae5467134
Merge 3.4 (asyncio)
2015-01-06 01:22:54 +01:00
Victor Stinner
212994e4e2
Issue #23140 , asyncio: Simplify the unit test
2015-01-06 01:22:45 +01:00
Victor Stinner
43a8534364
Merge 3.4 (asyncio)
2015-01-06 01:14:09 +01:00
Victor Stinner
c447ba04e7
Issue #23140 , asyncio: Fix cancellation of Process.wait(). Check the state of
...
the waiter future before setting its result.
2015-01-06 01:13:49 +01:00
Victor Stinner
2b014b3748
Merge 3.4 (asyncio)
2015-01-06 01:04:38 +01:00
Victor Stinner
8c1a4a2326
Issue #23046 : Expose the BaseEventLoop class in the asyncio namespace
2015-01-06 01:03:58 +01:00
Ned Deily
04c365d7fb
Issue #22165 : merge from 3.4
2015-01-05 01:05:36 -08:00
Ned Deily
1418320850
Issue #22165 : Skip test_undecodable_filename on OS X prior to 10.5.
...
10.4 systems do not allow creation of files with such filenames.
2015-01-05 01:02:30 -08:00
Berker Peksag
81da286f3b
Issue #18644 : Fix a ResourceWarning in formatter.test().
...
Patch by Vajrasky Kok.
2015-01-05 09:20:07 +02:00
Berker Peksag
d91082c777
Issue #18644 : Fix a ResourceWarning in formatter.test().
...
Patch by Vajrasky Kok.
2015-01-05 09:19:40 +02:00
Gregory P. Smith
9eb1faf39b
fix issue23157 - time_hashlib hadn't been ported to Python 3.
2015-01-04 00:36:59 -08:00
Gregory P. Smith
5719ef17ba
fix issue23157 - time_hashlib hadn't been ported to Python 3.
2015-01-04 00:36:04 -08:00
Donald Stufft
60779a5527
Update bundled pip and setuptools to 6.0.6 and 11.0.
2015-01-03 05:21:23 -05:00
Donald Stufft
b8f35ff57b
Upgrade the bundled pip to 6.0.6 and the bundled setuptools to 11.0
2015-01-03 05:20:23 -05:00
Serhiy Storchaka
697a526fa1
Issue #23132 : Improve performance and introspection support of comparison
...
methods created by functool.total_ordering.
2015-01-01 15:23:12 +02:00
Benjamin Peterson
bfdec6263f
merge 3.4 ( #23111 )
2014-12-30 15:16:13 -06:00
Benjamin Peterson
36fe7926f8
make PROTOCOL_SSLv23 the default protocol version for ftplib ( closes #23111 )
2014-12-30 15:15:43 -06:00
Antoine Pitrou
5d4e27ecee
whitespace
2014-12-30 22:09:42 +01:00
Antoine Pitrou
8477ed6048
Issue #19776 : Add a expanduser() method on Path objects.
...
Patch by Serhiy.
2014-12-30 20:54:45 +01:00
Victor Stinner
0f9f7497d0
Merge 3.4 (asyncio)
2014-12-26 21:29:45 +01:00
Victor Stinner
956de691f8
Issue #22926 : In debug mode, call_soon(), call_at() and call_later() methods of
...
asyncio.BaseEventLoop now use the identifier of the current thread to ensure
that they are called from the thread running the event loop.
Before, the get_event_loop() method was used to check the thread, and no
exception was raised when the thread had no event loop. Now the methods always
raise an exception in debug mode when called from the wrong thread. It should
help to notice misusage of the API.
2014-12-26 21:07:52 +01:00
Victor Stinner
d7ff5a5375
asyncio: sync with Tulip
...
* Fix pyflakes warnings: remove unused imports and variables
* asyncio.test_support now uses test.support and test.script_helper if available
2014-12-26 21:16:42 +01:00
Benjamin Peterson
fe975a234f
merge 3.4 ( #23112 )
2014-12-26 10:56:51 -06:00
Benjamin Peterson
94cb7a2429
fix behavior of trailing slash redirection when a query string is involved ( closes #23112 )
2014-12-26 10:53:43 -06:00
R David Murray
f2ad173eaf
#20069 : Add tests for os.chown.
...
Patch by Vajrasky Kok.
2014-12-25 18:36:56 -05:00
R David Murray
3ab6ba4744
Merge: #23040 : Clarify treatment of encoding and errors when component is bytes.
2014-12-24 21:24:07 -05:00
R David Murray
8c4e112afc
#23040 : Clarify treatment of encoding and errors when component is bytes.
...
Patch by Wojtek Ruszczewski.
2014-12-24 21:23:18 -05:00
Serhiy Storchaka
e4db76967d
Issue #21793 : Added http.HTTPStatus enums (i.e. HTTPStatus.OK,
...
HTTPStatus.NOT_FOUND). Patch by Demian Brecht.
2014-12-23 16:28:28 +02:00
Donald Stufft
ab47932212
Merge pip and setuptools upgrade
2014-12-23 09:19:45 -05:00
Donald Stufft
c8d94ba8f4
Upgrade pip to 6.0.2 and setuptools to 8.2.1
2014-12-23 09:18:38 -05:00
Victor Stinner
fa45c2e7a6
Merge 3.4 (asyncio)
2014-12-22 22:10:10 +01:00
Victor Stinner
952ec98abb
asyncio doc: update also Queue docstrings
2014-12-22 22:09:50 +01:00
Benjamin Peterson
98beb7599e
merge 3.4 ( #23093 )
2014-12-21 21:00:51 -06:00
Benjamin Peterson
10e76b67c9
allow more operations to work on detached streams ( closes #23093 )
...
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Victor Stinner
fe02e39029
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Victor Stinner
4d6a3d6c01
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Serhiy Storchaka
3c6fe4da88
Issue #19104 : pprint now produces evaluable output for wrapped strings.
2014-12-20 20:58:28 +02:00
Serhiy Storchaka
fe3dc376fa
Issue #19104 : pprint now produces evaluable output for wrapped strings.
2014-12-20 20:57:15 +02:00
Serhiy Storchaka
f65d1d3b02
Issue #23071 : "namereplace_errors" was added only in 3.5.
2014-12-20 18:53:01 +02:00
Serhiy Storchaka
4d33ff6183
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:46:05 +02:00
Serhiy Storchaka
de3ee5b94f
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:42:38 +02:00
Victor Stinner
2f65f6678b
Merge 3.4 (asyncio)
2014-12-19 17:11:10 +01:00
Victor Stinner
4d825b45a0
asyncio: IocpProactor.wait_for_handle() test now also checks the result of the
...
future
2014-12-19 17:10:44 +01:00
Victor Stinner
123759502e
Merge 3.4 (asyncio)
2014-12-18 23:47:55 +01:00
Victor Stinner
1b9763d0a9
asyncio: sync with Tulip
...
* Fix a race condition in BaseSubprocessTransport._try_finish().
If the process exited before the _post_init() method was called, scheduling
the call to _call_connection_lost() with call_soon() is wrong:
connection_made() must be called before connection_lost().
Reuse the BaseSubprocessTransport._call() method to schedule the call to
_call_connection_lost() to ensure that connection_made() and
connection_lost() are called in the correct order.
* Add repr(PipeHandle)
* Fix typo
2014-12-18 23:47:27 +01:00
Victor Stinner
f00346ce37
Merge 3.4 (asyncio)
2014-12-18 12:30:33 +01:00
Victor Stinner
dc7765d12c
asyncio: sync with Tulip
2014-12-18 12:29:53 +01:00
Victor Stinner
42830578c6
Merge 3.4 (asyncio)
2014-12-18 01:20:29 +01:00
Victor Stinner
3a1c738e6c
Issue #23074 : asyncio.get_event_loop() now raises an exception if the thread
...
has no event loop even if assertions are disabled.
2014-12-18 01:20:10 +01:00
Steve Dower
438f4abb50
Issue #23060 : Suppresses a multiprocessing assert that fails incorrectly
...
This is to keep buildbots running while we figure out the best long-term fix.
2014-12-17 06:35:49 -08:00
Victor Stinner
fc6fdb112d
Issue #23009 : Skip test_selectors.test_empty_select() on Windows
2014-12-17 01:07:56 +01:00
Serhiy Storchaka
707b5ccde5
Issue #22783 : Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX
...
opcode if possible.
2014-12-16 19:43:46 +02:00
Serhiy Storchaka
01bdd9a980
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:40:58 +02:00
Serhiy Storchaka
5bbd231f27
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:39:08 +02:00
Serhiy Storchaka
f5553bbb0e
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:02:49 +02:00
Serhiy Storchaka
05dadcfb28
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:00:56 +02:00
Terry Jan Reedy
7bc279c49f
Merge with 3.4
2014-12-16 03:21:54 -05:00
Terry Jan Reedy
df9386940a
Issue #20577 : move configuration of FormatParagraph extension to new extension
...
configuration dialog. Patch by Tal Einat.
2014-12-16 03:21:26 -05:00
Steve Dower
03a144bb6a
#22980 Adds platform and version tags to .pyd files
2014-12-15 20:45:23 -08:00
Steve Dower
09bd9ec9b3
Fixes distutils adding/expecting too many _d suffixes.
2014-12-15 20:45:23 -08:00
Steve Dower
1f6c29a914
Removes bdist_wininst dependency on MFC.
2014-12-15 15:03:44 -08:00
Benjamin Peterson
8d33598e5d
merge 3.4 ( #23053 )
2014-12-15 10:05:13 -05:00
Benjamin Peterson
4c11c92578
remove extra ssl imports ( closes #23053 )
...
Patch from Jan Matejek.
2014-12-15 10:04:13 -05:00
Serhiy Storchaka
65ee4674e2
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:06:02 +02:00
Serhiy Storchaka
bad1257c96
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:03:42 +02:00
Serhiy Storchaka
0e32ea1089
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:06:22 +02:00
Serhiy Storchaka
79b81738ef
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:03:44 +02:00
Serhiy Storchaka
2c63c4b85d
Fixed a typo in a comment (issue #23016 ).
2014-12-14 10:53:50 +02:00
Serhiy Storchaka
eb9a9b6ffa
Fixed a typo in a comment (issue #23016 ).
2014-12-14 10:53:00 +02:00
Benjamin Peterson
2a7d05a9f2
merge 3.4
2014-12-13 16:13:31 -05:00
Benjamin Peterson
9566de18e6
make sure server threads get cleaned up
2014-12-13 16:13:24 -05:00
Benjamin Peterson
7ced53cc63
merge 3.4 ( #23048 )
2014-12-13 16:08:15 -05:00
Benjamin Peterson
3cda0ed062
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
Serhiy Storchaka
050ca6530d
Issue #22823 : Use set literals in lib2to3.
2014-12-13 21:51:17 +02:00
Serhiy Storchaka
db9b65d9e5
Issue #22823 : Use set literals in lib2to3.
2014-12-13 21:50:49 +02:00
Victor Stinner
437ffbdcd8
test_selectors: Tolerate 2.0 seconds instead of 1.6 sec for very slow buildbots
2014-12-12 12:57:35 +01:00
Victor Stinner
3f7e064b2b
Issue #22935 : Fix test_ssl when the SSLv3 protocol is not supported
2014-12-12 12:27:08 +01:00
Victor Stinner
0041142785
Issue #22935 : Fix ssl module when SSLv3 protocol is not supported
2014-12-12 12:23:09 +01:00
Serhiy Storchaka
4ac7ed97a8
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2014-12-12 09:29:15 +02:00
Victor Stinner
1e40f10886
asyncio, tulip issue 209: Fix subprocess for close_fds=False on Python 3.3
...
Mark the write end of the stdin pipe as non-inheritable.
2014-12-11 23:30:17 +01:00
Victor Stinner
df75d5b402
asyncio, tulip issue 202: Add unit test of pause/resume writing for proactor
...
socket transport
2014-12-11 22:23:19 +01:00
Terry Jan Reedy
049882e561
Issue 22823: Use set literal in idlelib.
2014-12-11 05:33:36 -05:00
Serhiy Storchaka
60599525c5
Issue #23016 : A warning no longer produces AttributeError when the program
...
is run with pythonw.exe.
2014-12-10 22:59:55 +02:00
Berker Peksag
884afd92f5
Issue #21775 : shutil.copytree(): fix crash when copying to VFAT
...
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Patch by Greg Ward.
2014-12-10 02:50:32 +02:00
Yury Selivanov
7de29687f2
inspect: Fix getsource() to load updated source of reloaded module
...
Issue #1218234 . Initial patch by Berker Peksag.
2014-12-08 18:00:25 -05:00
Yury Selivanov
dfc44e0525
selectors: Fix typo in comment.
2014-12-08 12:30:10 -05:00
Yury Selivanov
d60ef4aa9d
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
...
Closes issue #23009 .
2014-12-08 12:21:58 -05:00
Benjamin Peterson
b666697fa8
use context's check_hostname attribute rather than the HTTPSHandler check_hostname parameter
2014-12-07 13:46:02 -05:00
Benjamin Peterson
a090f01bb6
HTTPSConnection: prefer the context's check_hostname attribute over the constructor parameter ( #22959 )
2014-12-07 13:18:25 -05:00
Benjamin Peterson
e32467cf6a
allow ssl module to compile if openssl doesn't support SSL 3 ( closes #22935 )
...
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Terry Jan Reedy
81f01fb104
Update idlelib/NEWS.txt.
2014-12-05 20:49:32 -05:00
Benjamin Peterson
eca72d47f5
merge 3.3 ( #16043 )
2014-12-05 20:34:56 -05:00
Benjamin Peterson
81b7374fbe
merge 3.2 ( #16043 )
2014-12-05 20:30:54 -05:00
Benjamin Peterson
4e9cefaf86
add a default limit for the amount of data xmlrpclib.gzip_decode will return ( closes #16043 )
2014-12-05 20:15:15 -05:00
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
2014-12-05 22:25:22 +02:00
Victor Stinner
969175091c
Issue #22599 : Enhance tokenize.open() to be able to call it during Python
...
finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
2014-12-05 10:17:10 +01:00
Victor Stinner
f3e2e09213
Closes #22429 , asyncio: Fix EventLoop.run_until_complete(), don't stop the
...
event loop if a BaseException is raised, because the event loop is already
stopped.
2014-12-05 01:44:10 +01:00
Victor Stinner
4c85ec99f3
Issue #22922 : Fix ProactorEventLoop.close()
...
Call _stop_accept_futures() before sestting the _closed attribute, otherwise
call_soon() raises an error.
2014-12-05 01:43:42 +01:00
Victor Stinner
e80bf0d4a9
Closes #22922 : More EventLoop methods fail if the loop is closed. Initial patch
...
written by Torsten Landschoff.
create_task(), call_at(), call_soon(), call_soon_threadsafe() and
run_in_executor() now raise an error if the event loop is closed.
2014-12-04 23:07:47 +01:00
Victor Stinner
dd8224e6a4
Issue #22685 : Fix test_pause_reading() of asyncio test_subprocess
...
* mock also resume_reading()
* ensure that resume_reading() is called
2014-12-04 23:06:13 +01:00
Victor Stinner
fe22e0985a
asyncio: Initialize more Future and Task attributes in the class definition to
...
avoid attribute errors in destructors.
2014-12-04 23:00:13 +01:00
Serhiy Storchaka
1ad088f3ea
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:57 +02:00
Victor Stinner
d87de83582
Closes #22475 : asyncio doc, fix Task.get_stack() doc
2014-12-02 17:57:04 +01:00
Barry Warsaw
eb2763dd43
Fix the test to use an os.sep agnostic test. Hopefully this will fix the
...
Windows buildbots. Found by Jeremy Kloth.
2014-12-02 11:30:43 -05:00
Serhiy Storchaka
83cf99d733
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
...
is specified with non-string argument. Based on patch by Renaud Blanch.
2014-12-02 09:24:06 +02:00
Barry Warsaw
9d98c9bf42
Make this change a little more robust for up-merging.
2014-12-01 18:15:26 -05:00
Barry Warsaw
9e4db75426
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:23:55 -05:00
Barry Warsaw
2a413853f1
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:10:10 -05:00
Serhiy Storchaka
56a6d855e2
Removed duplicated words in in comments and docs.
2014-12-01 18:28:43 +02:00
Serhiy Storchaka
b491e0521f
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:07:45 +02:00
Serhiy Storchaka
9cba989502
Issue #22838 : All test_re tests now work with unittest test discovery.
2014-12-01 11:06:45 +02:00
Benjamin Peterson
66323415c7
backout 9fcf4008b626 ( #9179 ) for further consideration
2014-11-30 11:49:00 -05:00
Benjamin Peterson
c1da3d1ed8
add context parameter to xmlrpclib.ServerProxy ( #22960 )
...
Patch by Alex Gaynor.
2014-11-29 23:32:57 -05:00
Antoine Pitrou
2b3b95be62
Close issue #22895 : fix test failure introduced by the fix for issue #22462 .
2014-11-29 15:56:07 +01:00
Ned Deily
153879075f
Issue #16113 : Also remove test_case_sha3_224_huge
2014-11-28 15:21:12 -08:00
Victor Stinner
cbbd04d176
Issue #22685 : Debug test_pause_reading() on FreeBSD
2014-11-28 18:02:03 +01:00
Serhiy Storchaka
9a4fc19589
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:48:46 +02:00
Serhiy Storchaka
ab5e9b9213
Issue #22314 : pydoc now works when the LINES environment variable is set.
2014-11-28 00:09:29 +02:00
Serhiy Storchaka
fc8e9b0e72
Issue #22915 : SAX parser now supports files opened with file descriptor or
...
bytes path.
2014-11-27 22:13:16 +02:00
Serhiy Storchaka
a86700ae87
Issue #22609 : Revert changes in UserDict. They conflicted with existing tests.
2014-11-27 17:45:44 +02:00
Serhiy Storchaka
ae5cb214d2
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 16:25:51 +02:00
Benjamin Peterson
5b5350787f
use skipUnless
2014-11-26 14:35:56 -06:00
Benjamin Peterson
6150804397
handle errors without a reason attribute
2014-11-25 15:43:58 -06:00
Benjamin Peterson
2615e9e293
don't fail tests when www.python.org can't be validated by the system
2014-11-25 15:16:55 -06:00
Victor Stinner
5ef586f25a
Closes #22685 , asyncio: Set the transport of stdout and stderr StreamReader
...
objects in the SubprocessStreamProtocol. It allows to pause the transport to
not buffer too much stdout or stderr data.
2014-11-25 17:20:33 +01:00
Benjamin Peterson
43052a14c1
add context parameter to HTTPHandler ( closes #22788 )
2014-11-23 20:36:44 -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
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
Steve Dower
65e4cb10d9
Issue #22919 : Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release.
2014-11-22 12:54:57 -08:00
Brett Cannon
92716777b8
Stop using a deprecated unittest.TestCase method.
2014-12-12 12:00:02 -05:00
Victor Stinner
ee2b237464
Merge 3.4 (test_selectors)
2014-12-12 12:58:45 +01:00
Victor Stinner
648b862017
Issue #22935 : Fix test_ssl when the SSLv3 protocol is not supported
2014-12-12 12:23:59 +01:00
Serhiy Storchaka
d4a001b23c
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2014-12-12 09:30:18 +02:00
Victor Stinner
d625a1819d
Merge 3.4 (asyncio)
2014-12-11 23:30:31 +01:00
Victor Stinner
eb1a995a7c
Issue #22823 : Fix typo in unittest/mock.py
2014-12-11 22:25:49 +01:00
Victor Stinner
49784f4d14
Merge 3.4 (asyncio)
2014-12-11 22:23:28 +01:00
Terry Jan Reedy
6627902e0f
Merge with 3.4
2014-12-11 05:33:49 -05:00
Serhiy Storchaka
c02d188a84
Issue #22823 : Use set literals instead of creating a set from a list.
...
Fixed an output of sets in examples.
2014-12-11 10:28:14 +02:00
Serhiy Storchaka
927131e050
Issue #23016 : A warning no longer produces an AttributeError when the program
...
is run with pythonw.exe.
2014-12-10 23:04:47 +02:00
Berker Peksag
5de4a3cfc5
Issue #21775 : shutil.copytree(): fix crash when copying to VFAT
...
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Patch by Greg Ward.
2014-12-10 02:51:36 +02:00
Berker Peksag
0a2e874eea
Issue #17554 : Print "fetching <url> ..." messages only in verbose mode.
...
Patch by Ezio Melotti.
2014-12-10 02:34:11 +02:00
Yury Selivanov
ef1e750225
inspect: Fix getsource() to load updated source of reloaded module
...
Issue #1218234 . Initial patch by Berker Peksag.
2014-12-08 16:05:34 -05:00
Yury Selivanov
b532df62b9
Issue #21740 : Support wrapped callables in pydoc. Patch by Claudiu Popa.
2014-12-08 15:00:05 -05:00
Yury Selivanov
c57ca93a78
selectors: Fix typo in comment.
2014-12-08 12:30:28 -05:00
Yury Selivanov
7f98d3ecb8
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
...
Closes issue #23009 .
2014-12-08 12:22:33 -05:00
Benjamin Peterson
074b95da48
merge 3.4
2014-12-07 13:47:39 -05:00
Benjamin Peterson
b46247bee5
merge 3.4 ( #22959 )
2014-12-07 13:47:34 -05:00
Antoine Pitrou
5db1bb81ff
Issue #22696 : Add function :func:`sys.is_finalizing` to know about interpreter shutdown.
2014-12-07 01:28:27 +01:00
Benjamin Peterson
22293df016
merge 3.4 ( #22935 )
2014-12-05 22:11:33 -05:00
Terry Jan Reedy
4becc38ad1
Update idlelib/NEWS.txt.
2014-12-05 20:51:08 -05:00
Benjamin Peterson
7eda940e1f
merge 3.4 ( #16043 )
2014-12-05 20:36:07 -05:00
Serhiy Storchaka
92bf919ed0
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
2014-12-05 22:26:10 +02:00
Victor Stinner
9d279b87d8
(Merge 3.4) Issue #22599 : Enhance tokenize.open() to be able to call it during
...
Python finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
2014-12-05 10:18:30 +01:00
Victor Stinner
96a4b5adfc
Merge 3.4 (asyncio)
2014-12-05 01:44:31 +01:00
Victor Stinner
ba7c181513
Issue #22922 : Fix ProactorEventLoop.close()
...
Call _stop_accept_futures() before sestting the _closed attribute, otherwise
call_soon() raises an error.
2014-12-05 01:25:21 +01:00
Victor Stinner
d5ea5d528a
Merge 3.4 (asyncio)
2014-12-04 23:08:37 +01:00
Serhiy Storchaka
f4adbae927
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:14:36 +02:00
Serhiy Storchaka
4954f9fcab
Issue #17401 : Output the closefd attribute as boolean.
2014-12-02 23:39:56 +02:00
Victor Stinner
b16edc8087
Merge 3.4 (asyncio doc)
2014-12-02 18:01:07 +01:00
Barry Warsaw
de010a9685
Merge 3.4.
2014-12-02 11:31:10 -05:00
Serhiy Storchaka
0b2cacb42a
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
...
is specified with non-string argument. Based on patch by Renaud Blanch.
2014-12-02 09:26:14 +02:00
Antoine Pitrou
6cd5eda0dd
Fix uninitialized variable after #22676 .
2014-12-02 00:20:03 +01:00
Barry Warsaw
d32d4ae4ca
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:52:43 -05:00
Serhiy Storchaka
83000a490a
Removed duplicated words in in comments and docs.
2014-12-01 18:30:14 +02:00
Serhiy Storchaka
2205da43a6
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:10:12 +02:00
Serhiy Storchaka
22a309a434
Issue #21032 : Deprecated the use of re.LOCALE flag with str patterns or
...
re.ASCII. It was newer worked.
2014-12-01 11:50:07 +02:00
Serhiy Storchaka
720b8c9dd7
Removed unused function linecol() (added in issue #22578 by mistake).
2014-12-01 11:25:21 +02:00
Serhiy Storchaka
fb028336f9
Issue #22838 : All test_re tests now work with unittest test discovery.
2014-12-01 11:08:27 +02:00
Serhiy Storchaka
ac4aa7b6aa
Issue #22902 : The "ip" command is now used on Linux to determine MAC address
...
in uuid.getnode(). Pach by Bruno Cauet.
2014-11-30 20:39:04 +02:00
Benjamin Peterson
16e802f4ae
merge 3.4 ( #9179 )
2014-11-30 11:51:16 -05:00
Benjamin Peterson
e39bba2ab1
merge 3.4 ( #22960 )
2014-11-29 23:34:30 -05:00
Antoine Pitrou
3a9c68e608
Close issue #22895 : fix test failure introduced by the fix for issue #22462 .
2014-11-29 15:56:38 +01:00
Ned Deily
df46e2a43b
Issue #16113 : Also remove test_case_sha3_224_huge
2014-11-28 15:22:15 -08:00
Raymond Hettinger
0badfd5989
Minor code cleanup.
2014-11-28 14:52:14 -08:00
Victor Stinner
73866efc34
Issue #22685 , asyncio: resume_reading() must also be called in test_pause_reading()
2014-11-28 22:42:06 +01:00
Victor Stinner
ddf3bc9078
Issue #22685 , asyncio: mock also resume_reading in test_pause_reading()
2014-11-28 22:37:16 +01:00
Berker Peksag
bb44fe0a0b
Issue #22389 : Add contextlib.redirect_stderr().
2014-11-28 23:28:06 +02:00
Victor Stinner
ae553eb794
Merge 3.4 (asyncio)
2014-11-28 18:02:16 +01:00
Victor Stinner
beeb512fe1
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation.
Patch written by Bernard Spil.
2014-11-28 13:28:25 +01:00
Serhiy Storchaka
0a99b2ab61
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:49:50 +02:00
Serhiy Storchaka
f1fc9fb33d
Issue #22314 : pydoc now works when the LINES environment variable is set.
2014-11-28 00:11:07 +02:00
Serhiy Storchaka
5916d53032
Issue #22915 : SAX parser now supports files opened with file descriptor or
...
bytes path.
2014-11-27 22:14:30 +02:00
Serhiy Storchaka
f51f713f30
Issue #22609 : Revert changes in UserDict. They conflicted with existing tests.
2014-11-27 17:46:15 +02:00
Serhiy Storchaka
8943ecfab2
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 16:35:26 +02:00
Ned Deily
8007cbc4d5
Issue 22940: fixes to editline support
2014-11-26 13:02:33 -08:00
Benjamin Peterson
12abc86903
merge 3.4
2014-11-26 14:36:08 -06:00
Benjamin Peterson
d1e22ba7db
only support append_history if readline has it
2014-11-26 14:35:12 -06:00
Benjamin Peterson
33f8f15bdd
add readline.append_history_file ( closes #22940 )
...
patch by "bru"
2014-11-26 13:58:16 -06:00
Benjamin Peterson
8dcaa4b1c6
merge 3.4
2014-11-25 18:05:40 -06:00
Victor Stinner
6a11e5e1ae
(Merge 3.4) Closes #22685 , asyncio: Set the transport of stdout and stderr
...
StreamReader objects in the SubprocessStreamProtocol. It allows to pause the
transport to not buffer too much stdout or stderr data.
2014-11-25 17:21:43 +01:00
Serhiy Storchaka
166ebc4e5d
Issue #19676 : Added the "namereplace" error handler.
2014-11-25 13:57:17 +02:00
Benjamin Peterson
6c22e65773
merge 3.4 ( #22788 )
2014-11-23 20:38:13 -06:00
Benjamin Peterson
f9284ae8ed
merge 3.4 ( #22921 )
2014-11-23 17:06:39 -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
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
Serhiy Storchaka
5f33677219
Merge heads
2014-11-10 10:21:03 +02:00
Berker Peksag
39e4c4d873
Issue #21650 : Add an `--sort-keys` option to json.tool CLI.
2014-11-10 09:56:54 +02:00
Raymond Hettinger
ffd842e1d6
Issue #22824 : Updated reprlib output format for sets to use set literals.
2014-11-09 22:30:36 -08:00
Raymond Hettinger
df1b699447
Issue #22823 : Use set literals instead of creating a set from a list
2014-11-09 15:56:33 -08:00
Serhiy Storchaka
c7f7d3897e
Issue #22434 : Constants in sre_constants are now named constants (enum-like).
2014-11-09 20:48:36 +02:00
Serhiy Storchaka
479c1176bf
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:33:19 +02:00
Serhiy Storchaka
3402ef6c8d
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:32:37 +02:00
Serhiy Storchaka
6276b32799
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:45:17 +02:00
Serhiy Storchaka
84df7fe6a2
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:57 +02:00
Serhiy Storchaka
85e7066278
Issue #22406 : Fixed the uu_codec codec incorrectly ported to 3.x.
...
Based on patch by Martin Panter.
2014-11-07 14:06:19 +02:00
Serhiy Storchaka
519114df42
Issue #22406 : Fixed the uu_codec codec incorrectly ported to 3.x.
...
Based on patch by Martin Panter.
2014-11-07 14:04:37 +02:00