Benjamin Peterson
36fe7926f8
make PROTOCOL_SSLv23 the default protocol version for ftplib ( closes #23111 )
2014-12-30 15:15:43 -06: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
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
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
8c4e112afc
#23040 : Clarify treatment of encoding and errors when component is bytes.
...
Patch by Wojtek Ruszczewski.
2014-12-24 21:23:18 -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
952ec98abb
asyncio doc: update also Queue docstrings
2014-12-22 22:09:50 +01: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
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
de3ee5b94f
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:42:38 +02: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
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
dc7765d12c
asyncio: sync with Tulip
2014-12-18 12:29:53 +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
Serhiy Storchaka
5bbd231f27
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:39:08 +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
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
Benjamin Peterson
4c11c92578
remove extra ssl imports ( closes #23053 )
...
Patch from Jan Matejek.
2014-12-15 10:04:13 -05:00
Serhiy Storchaka
bad1257c96
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:03:42 +02:00
Serhiy Storchaka
79b81738ef
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:03:44 +02:00
Serhiy Storchaka
eb9a9b6ffa
Fixed a typo in a comment (issue #23016 ).
2014-12-14 10:53:00 +02:00
Benjamin Peterson
9566de18e6
make sure server threads get cleaned up
2014-12-13 16:13:24 -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
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