- 04 Sep, 2017 21 commits
-
-
Serhiy Storchaka authored
-
Zachary Ware authored
-
Melvyn Sopacua authored
* Change NPN detection: Version breakdown, support disabled (pre-patch/post-patch): - pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will be defined -> True/False Version breakdown support enabled (pre-patch/post-patch): - pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True - 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True * Refine NPN guard: - If NPN is disabled, but ALPN is available we need our callback - Make clinic's ssl behave the same way This created a working ssl module for me, with NPN disabled and ALPN enabled for OpenSSL 1.1.0f. Concerns to address: The initial commit for NPN support into OpenSSL [1], had the OPENSSL_NPN_* variables defined inside the OPENSSL_NO_NEXTPROTONEG guard. The question is if that ever made it into a release. This would need an ugly hack, something like: #if defined(OPENSSL_NO_NEXTPROTONEG) && \ !defined(OPENSSL_NPN_NEGOTIATED) # define OPENSSL_NPN_UNSUPPORTED 0 # define OPENSSL_NPN_NEGOTIATED 1 # define OPENSSL_NPN_NO_OVERLAP 2 #endif [1] https://github.com/openssl/openssl/commit/68b33cc5c7
-
Barry Warsaw authored
-
Steve Dower authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
This comment hasn't been true since Python 3.0.
-
Barry Warsaw authored
* bpo-1198569: Allow the braced pattern to be different ``string.Template`` subclasses can optionally define ``braceidpattern`` if they want to specify different placeholder patterns inside and outside the braces. If None (the default) it falls back to ``idpattern``.
-
larryhastings authored
Blurbify master branch.
-
Christian Heimes authored
Signed-off-by: Christian Heimes <christian@python.org>
-
R. David Murray authored
Patch by Paul.j3. Includes an unrelated but useful addition to the optparse porting section.
-
Raymond Hettinger authored
-
Barry Warsaw authored
-
Raymond Hettinger authored
-
Benjamin Peterson authored
-
Alex Gaynor authored
* Change code owners for hashlib and ssl to the crypto team * Include the core CSPRNG for the crypto-team
-
Zhiming Wang authored
Fix fileinput with inplace=True to accept pathlib.Path objects.
-
Benjamin Peterson authored
We never actually check HAVE_SELECT.
-
Benjamin Peterson authored
This is a required feature is C99, which we require.
-
Segev Finer authored
-
Ned Deily authored
Used in macOS framework builds.
-
- 03 Sep, 2017 4 commits
-
-
Gregory P. Smith authored
-
Antoine Pitrou authored
-
Serhiy Storchaka authored
-
Oren Milman authored
-
- 01 Sep, 2017 6 commits
-
-
Victor Stinner authored
Store exceptions as string rather than object to prevent reference cycles which cause leaking dangling threads.
-
Victor Stinner authored
Call doCleanups() to close the loop after calling executor.shutdown(wait=True): see TestCase.set_event_loop() of asyncio.test_utils. Replace also gc.collect() with support.gc_collect().
-
Victor Stinner authored
* bpo-31326: ProcessPoolExecutor waits for the call queue thread concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly closes the call queue. Moreover, shutdown(wait=True) now also join the call queue thread, to prevent leaking a dangling thread. * Fix for shutdown() being called twice.
-
Grzegorz Grzywacz authored
bpo-27144: concurrent.futures as_complete and map iterators do not keep reference to returned object (#1560) * bpo-27144: concurrent.futures as_complie and map iterators do not keep reference to returned object * Some nits. Improve wordings in docstrings and comments, and avoid relying on sys.getrefcount() in tests.
-
Victor Stinner authored
* Explicitly call shutdown(wait=True) on executors to wait until all threads complete to prevent side effects between tests. * Fix test_loop_self_reading_exception(): don't mock loop.close(). Previously, the original close() method was called rather than the mock, because how set_event_loop() registered loop.close().
-
Victor Stinner authored
Use a pool of integer objects toprevent false alarm when checking for memory block leaks. Fill the pool with values in -1000..1000 which are the most common (reference, memory block, file descriptor) differences. Co-Authored-By: Antoine Pitrou <pitrou@free.fr>
-
- 30 Aug, 2017 7 commits
-
-
Eric Appelt authored
Use base class rather than metaclass in examples.
-
Lisa Hewus Fresh authored
Update old devguide links from https://docs.python.org/devguide to https://devguide.python.org
-
Antoine Pitrou authored
-
Sergey Fedoseev authored
Code was indented with three spaces. Fixed using four spaces.
-
Alex Gaynor authored
-
Christopher Wilcox authored
* Fixes #30581 by adding a path to use newer GetMaximumProcessorCount API on Windows calls to os.cpu_count() * Add NEWS.d entry for bpo-30581, os.cpu_count on Windows. * Tweak NEWS entry
-
Terry Jan Reedy authored
-
- 29 Aug, 2017 2 commits
-
-
Allen W. Smith, Ph.D authored
* Make error message more informative Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is. * Additional clarification + get travis to check * Change from SystemError to TypeError As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate. * NEWS file installation; ACKS addition (will do my best to justify it by additional work) * Making current AssertionErrors in multiprocessing more informative * Blurb added re multiprocessing managers.py, queues.py cleanup * Further multiprocessing cleanup - went through pool.py * Fix two asserts in multiprocessing/util.py * Most asserts in multiprocessing more informative * Didn't save right version * Further work on multiprocessing error messages * Correct typo * Correct typo v2 * Blasted colon... serves me right for trying to work on two things at once * Simplify NEWS entry * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst OK, never mind. * Corrected (thanks to pitrou) error messages for notify * Remove extraneous backslash in docstring.
-
Oren Milman authored
if pathname.replace('/', '\\') returns non-string.
-