]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
10 years agoregrtest: when parallel tests are interrupted, display progress
Victor Stinner [Thu, 24 Mar 2016 11:04:15 +0000 (12:04 +0100)] 
regrtest: when parallel tests are interrupted, display progress

10 years agoregrtest: mention in tests run sequentially or in parallel
Victor Stinner [Thu, 24 Mar 2016 10:55:29 +0000 (11:55 +0100)] 
regrtest: mention in tests run sequentially or in parallel

10 years agoregrtest: fix --fromfile feature
Victor Stinner [Thu, 24 Mar 2016 08:43:00 +0000 (09:43 +0100)] 
regrtest: fix --fromfile feature

* Update code for the name regrtest output format.
* Enhance also test_regrtest test on --fromfile

10 years agoFix DeprecationWarning on Windows
Victor Stinner [Thu, 24 Mar 2016 08:11:48 +0000 (09:11 +0100)] 
Fix DeprecationWarning on Windows

Issue #25911: Use support.check_warnings() to expect or ignore
DeprecationWarning in test_os.

10 years ago_tracemalloc: use compact key for traces
Victor Stinner [Wed, 23 Mar 2016 21:03:55 +0000 (22:03 +0100)] 
_tracemalloc: use compact key for traces

Issue #26588: Optimize memory footprint of _tracemalloc before non-zero domain
is used. Start with compact key (Py_uintptr_t) and also switch to pointer_t key
when the first memory block with a non-zero domain is tracked.

10 years agosocketmodule.c: error if option larger than INT_MAX
Victor Stinner [Wed, 23 Mar 2016 20:35:29 +0000 (21:35 +0100)] 
socketmodule.c: error if option larger than INT_MAX

On Windows, socket.setsockopt() raises an OverflowError if the socket option is
larger than INT_MAX bytes.

10 years agoFix test_spwd on OpenIndiana
Victor Stinner [Wed, 23 Mar 2016 20:15:55 +0000 (21:15 +0100)] 
Fix test_spwd on OpenIndiana

Issue #18787: restore "bin" name in test_spwd but catch KeyError.

10 years agoTry to fix test_gdb on s390x SLES 3.x
Victor Stinner [Wed, 23 Mar 2016 20:08:25 +0000 (21:08 +0100)] 
Try to fix test_gdb on s390x SLES 3.x

Ignore empty lines in stderr.

10 years agoNull merge.
Stefan Krah [Wed, 23 Mar 2016 19:53:47 +0000 (20:53 +0100)] 
Null merge.

10 years agoIssue #26621: Remove unnecessary test.
Stefan Krah [Wed, 23 Mar 2016 19:53:22 +0000 (20:53 +0100)] 
Issue #26621: Remove unnecessary test.

10 years agoIssue #26621: Update libmpdec version and remove unnecessary test case.
Stefan Krah [Wed, 23 Mar 2016 19:50:10 +0000 (20:50 +0100)] 
Issue #26621: Update libmpdec version and remove unnecessary test case.

10 years agoTry to fix test_spwd on OpenIndiana
Victor Stinner [Wed, 23 Mar 2016 17:45:55 +0000 (18:45 +0100)] 
Try to fix test_spwd on OpenIndiana

Issue #18787: try to get the "root" entry which should exist on all UNIX
instead of "bin" which doesn't exist on OpenIndiana.

10 years agoMerge heads
Terry Jan Reedy [Wed, 23 Mar 2016 17:40:14 +0000 (13:40 -0400)] 
Merge heads

10 years agoMerge heads
Terry Jan Reedy [Wed, 23 Mar 2016 17:39:18 +0000 (13:39 -0400)] 
Merge heads

10 years agoIssue #23848: Fix usage of _Py_DumpDecimal()
Victor Stinner [Wed, 23 Mar 2016 17:37:54 +0000 (18:37 +0100)] 
Issue #23848: Fix usage of _Py_DumpDecimal()

10 years agoMerge with 3.5
Terry Jan Reedy [Wed, 23 Mar 2016 17:37:15 +0000 (13:37 -0400)] 
Merge with 3.5

10 years agolongobject.c: fix compilation warning on Windows 64-bit
Victor Stinner [Wed, 23 Mar 2016 17:36:54 +0000 (18:36 +0100)] 
longobject.c: fix compilation warning on Windows 64-bit

We know that Py_SIZE(b) is -1 or 1 an so fits into the sdigit type.

10 years agoIssue #26525: Change chr example to match change in ord example.
Terry Jan Reedy [Wed, 23 Mar 2016 17:36:52 +0000 (13:36 -0400)] 
Issue #26525: Change chr example to match change in ord example.

10 years agoTry to fix test_gdb on s390x buildbots
Victor Stinner [Wed, 23 Mar 2016 17:32:54 +0000 (18:32 +0100)] 
Try to fix test_gdb on s390x buildbots

10 years agoget_warnings_attr(): Fix coverity warning
Victor Stinner [Wed, 23 Mar 2016 16:48:22 +0000 (17:48 +0100)] 
get_warnings_attr(): Fix coverity warning

Don't check if the dict key exists before getting the key. Instead get the key
and handle error.

10 years agoFix typo in doc: avoid the french "& cie" :-)
Victor Stinner [Wed, 23 Mar 2016 15:57:51 +0000 (16:57 +0100)] 
Fix typo in doc: avoid the french "& cie" :-)

10 years agoRework _Py_DumpASCII() to make Coverity happy
Victor Stinner [Wed, 23 Mar 2016 15:10:07 +0000 (16:10 +0100)] 
Rework _Py_DumpASCII() to make Coverity happy

10 years agoIssue #23848: Try to fix test_faulthandler on ARM
Victor Stinner [Wed, 23 Mar 2016 14:19:12 +0000 (15:19 +0100)] 
Issue #23848: Try to fix test_faulthandler on ARM

Restore the previous code for stack_overflow().

10 years agofaulthandler: only log fatal exceptions
Victor Stinner [Wed, 23 Mar 2016 13:44:14 +0000 (14:44 +0100)] 
faulthandler: only log fatal exceptions

Issue #23848, #26622:

* faulthandler now only logs fatal Windows exceptions.
* write error code as decimal, not as hexadecimal
* replace "Windows exception" with "Windows fatal exception"

10 years agoMerge 3.5
doko@ubuntu.com [Wed, 23 Mar 2016 11:58:00 +0000 (12:58 +0100)] 
Merge 3.5

10 years agoMakefile.pre.in (profile-opt): Fix bashism.
doko@ubuntu.com [Wed, 23 Mar 2016 11:57:29 +0000 (12:57 +0100)] 
Makefile.pre.in (profile-opt): Fix bashism.

10 years agoBuildbots: change also Windows timeout from 1 hour to 15 min
Victor Stinner [Wed, 23 Mar 2016 11:38:01 +0000 (12:38 +0100)] 
Buildbots: change also Windows timeout from 1 hour to 15 min

10 years agoregrtest: display test duration in sequential mode
Victor Stinner [Wed, 23 Mar 2016 11:14:10 +0000 (12:14 +0100)] 
regrtest: display test duration in sequential mode

Only display duration if a test takes more than 30 seconds.

10 years ago_msi.c: try to fix compiler warnings
Victor Stinner [Wed, 23 Mar 2016 10:37:41 +0000 (11:37 +0100)] 
_msi.c: try to fix compiler warnings

10 years agocompiler.c: fix compiler warnings on Windows
Victor Stinner [Wed, 23 Mar 2016 10:36:19 +0000 (11:36 +0100)] 
compiler.c: fix compiler warnings on Windows

10 years agogetpathp.c: fix compiler warning
Victor Stinner [Wed, 23 Mar 2016 10:31:58 +0000 (11:31 +0100)] 
getpathp.c: fix compiler warning

wcsnlen_s() result type is size_t.

10 years ago_PyMem_DebugFree(): fix compiler warning on Windows
Victor Stinner [Wed, 23 Mar 2016 10:30:43 +0000 (11:30 +0100)] 
_PyMem_DebugFree(): fix compiler warning on Windows

Don't return a void value.

10 years agofaulthandler: add Windows exception handler
Victor Stinner [Wed, 23 Mar 2016 09:39:17 +0000 (10:39 +0100)] 
faulthandler: add Windows exception handler

Issue #23848: On Windows, faulthandler.enable() now also installs an exception
handler to dump the traceback of all Python threads on any Windows exception,
not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).

10 years agoIssue #23848: Expose _Py_DumpHexadecimal()
Victor Stinner [Wed, 23 Mar 2016 09:32:26 +0000 (10:32 +0100)] 
Issue #23848: Expose _Py_DumpHexadecimal()

This function will be reused by faulthandler.

10 years agoCleanup hashtable.h
Victor Stinner [Wed, 23 Mar 2016 08:52:13 +0000 (09:52 +0100)] 
Cleanup hashtable.h

Issue #26588:

* Pass the hash table rather than the key size to hash and compare functions
* _Py_HASHTABLE_READ_KEY() and _Py_HASHTABLE_ENTRY_READ_KEY() macros now expect
  the hash table as the first parameter, rather than the key size
* tracemalloc_get_traces_fill(): use _Py_HASHTABLE_ENTRY_READ_DATA() rather
  than pointer dereference
* Remove the _Py_HASHTABLE_ENTRY_WRITE_PKEY() macro
* Move "PKEY" and "PDATA" macros inside hashtable.c

10 years agoIssue #26588:
Victor Stinner [Wed, 23 Mar 2016 08:38:54 +0000 (09:38 +0100)] 
Issue #26588:

* Optimize tracemalloc_add_trace(): modify hashtable entry data (trace) if the
  memory block is already tracked, rather than trying to remove the old trace
  and then add a new trace.
* Add _Py_HASHTABLE_ENTRY_WRITE_DATA() macro

10 years agoIssue #26588:
Victor Stinner [Wed, 23 Mar 2016 08:25:01 +0000 (09:25 +0100)] 
Issue #26588:

* _Py_HASHTABLE_ENTRY_DATA: change type from "char *" to "const void *"
* Add _Py_HASHTABLE_ENTRY_WRITE_PKEY() macro
* Rename _Py_HASHTABLE_ENTRY_WRITE_DATA() macro to
  _Py_HASHTABLE_ENTRY_WRITE_PDATA()
* Add _Py_HASHTABLE_ENTRY_WRITE_DATA() macro

10 years agoIssue #26588: Optimize tracemalloc_realloc()
Victor Stinner [Wed, 23 Mar 2016 08:08:08 +0000 (09:08 +0100)] 
Issue #26588: Optimize tracemalloc_realloc()

No need to remove the old trace if the memory block didn't move.

10 years agoMakefile: change default value of TESTTIMEOUT from 1 hour to 15 min
Victor Stinner [Wed, 23 Mar 2016 01:05:39 +0000 (02:05 +0100)] 
Makefile: change default value of TESTTIMEOUT from 1 hour to 15 min

The whole test suite takes 6 minutes on my laptop. It takes less than 30
minutes on most buildbots. The TESTTIMEOUT is the timeout for a single test
file.

10 years agoregrtest: add timeout to main process when using -jN
Victor Stinner [Wed, 23 Mar 2016 01:04:32 +0000 (02:04 +0100)] 
regrtest: add timeout to main process when using -jN

libregrtest: add a watchdog to run_tests_multiprocess() using
faulthandler.dump_traceback_later().

10 years ago_warnings.warn_explicit(): try to import warnings
Victor Stinner [Tue, 22 Mar 2016 23:54:48 +0000 (00:54 +0100)] 
_warnings.warn_explicit(): try to import warnings

Issue #26592: _warnings.warn_explicit() now tries to import the warnings module
(Python implementation) if the source parameter is set to be able to log the
traceback where the source was allocated.

10 years agoImplement finalizer for os.scandir() iterator
Victor Stinner [Tue, 22 Mar 2016 23:43:54 +0000 (00:43 +0100)] 
Implement finalizer for os.scandir() iterator

Issue #26603:

* Implement finalizer for os.scandir() iterator
* Set the source parameter when emitting the ResourceWarning warning
* Close the iterator before emitting the warning

10 years agoAdd a source parameter to warnings.warn()
Victor Stinner [Tue, 22 Mar 2016 23:28:08 +0000 (00:28 +0100)] 
Add a source parameter to warnings.warn()

Issue #26604:

* Add a new optional source parameter to _warnings.warn() and warnings.warn()
* Modify asyncore, asyncio and _pyio modules to set the source parameter when
  logging a ResourceWarning warning

10 years agoFix macros in hashtable.h
Victor Stinner [Tue, 22 Mar 2016 23:18:36 +0000 (00:18 +0100)] 
Fix macros in hashtable.h

Add parenthesis.

10 years agoMerge 3.5
Victor Stinner [Tue, 22 Mar 2016 23:17:54 +0000 (00:17 +0100)] 
Merge 3.5

10 years agoEnhance _tracemalloc debug mode
Victor Stinner [Tue, 22 Mar 2016 23:17:04 +0000 (00:17 +0100)] 
Enhance _tracemalloc debug mode

Issue #26588: Enhance assertion in set_reentrant()

10 years agoFix _tracemalloc start/stop
Victor Stinner [Tue, 22 Mar 2016 23:10:24 +0000 (00:10 +0100)] 
Fix _tracemalloc start/stop

Issue #26588: Fix _tracemalloc start/stop: don't play with the reentrant flag.

set_reentrant(1) fails with an assertion error if tracemalloc_init() is called
first in a thread A and tracemalloc_start() is called second in a thread B. The
tracemalloc is imported in a thread A. Importing the module calls
tracemalloc_init(). tracemalloc.start() is called in a thread B.

10 years agoIssue #26588: remove debug traces from _tracemalloc.
Victor Stinner [Tue, 22 Mar 2016 22:54:42 +0000 (23:54 +0100)] 
Issue #26588: remove debug traces from _tracemalloc.

10 years agoIssue #26588: skip test_warnings.test_tracemalloc()
Victor Stinner [Tue, 22 Mar 2016 20:26:31 +0000 (21:26 +0100)] 
Issue #26588: skip test_warnings.test_tracemalloc()

10 years agoIssue #26588: more debug traces
Victor Stinner [Tue, 22 Mar 2016 20:06:07 +0000 (21:06 +0100)] 
Issue #26588: more debug traces

10 years agoIssue #26588: Don't call tracemalloc_init() at module initilization
Victor Stinner [Tue, 22 Mar 2016 19:56:49 +0000 (20:56 +0100)] 
Issue #26588: Don't call tracemalloc_init() at module initilization

So it's possible to get debug messages in test_tracemalloc.

10 years agoIssue #26588: one more assertion
Victor Stinner [Tue, 22 Mar 2016 17:48:50 +0000 (18:48 +0100)] 
Issue #26588: one more assertion

10 years agoAdd assertions on tracemalloc_reentrant_key
Victor Stinner [Tue, 22 Mar 2016 16:45:09 +0000 (17:45 +0100)] 
Add assertions on tracemalloc_reentrant_key

Issue #26588.

10 years agoIssue #26588: more assertions
Victor Stinner [Tue, 22 Mar 2016 16:40:07 +0000 (17:40 +0100)] 
Issue #26588: more assertions

10 years agoIssue #26588: fix compilation on Windows
Victor Stinner [Tue, 22 Mar 2016 15:29:02 +0000 (16:29 +0100)] 
Issue #26588: fix compilation on Windows

10 years agoIssue #26588: add debug traces
Victor Stinner [Tue, 22 Mar 2016 15:13:31 +0000 (16:13 +0100)] 
Issue #26588: add debug traces

Try to debug random failure on buildbots.

10 years agoregrtest: add time to output
Victor Stinner [Tue, 22 Mar 2016 14:14:09 +0000 (15:14 +0100)] 
regrtest: add time to output

Timestamps should help to debug slow buildbots, and timeout and hang on
buildbots.

10 years agoAdd C functions _PyTraceMalloc_Track()
Victor Stinner [Tue, 22 Mar 2016 12:39:05 +0000 (13:39 +0100)] 
Add C functions _PyTraceMalloc_Track()

Issue #26530:

* Add C functions _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() to track
  memory blocks using the tracemalloc module.
* Add _PyTraceMalloc_GetTraceback() to get the traceback of an object.

10 years agotracemalloc now supports domains
Victor Stinner [Tue, 22 Mar 2016 11:58:23 +0000 (12:58 +0100)] 
tracemalloc now supports domains

Issue #26588:

* The _tracemalloc now supports tracing memory allocations of multiple address
  spaces (domains).
* Add domain parameter to tracemalloc_add_trace() and
  tracemalloc_remove_trace().
* tracemalloc_add_trace() now starts by removing the previous trace, if any.
* _tracemalloc._get_traces() now returns a list of (domain, size,
  traceback_frames): the domain is new.
* Add tracemalloc.DomainFilter
* tracemalloc.Filter: add an optional domain parameter to the constructor and a
  domain attribute
* Sublte change: use Py_uintptr_t rather than void* in the traces key.
* Add tracemalloc_config.use_domain, currently hardcoded to 1

10 years agoRemove _Py_hashtable_delete()
Victor Stinner [Tue, 22 Mar 2016 11:25:04 +0000 (12:25 +0100)] 
Remove _Py_hashtable_delete()

Issue #26588: Remove _Py_hashtable_delete() from hashtable.h since the function
is not used. Keep the C code in hashtable.c as commented code if someone needs
it later.

10 years agoSimplify implementation of hashtable.c
Victor Stinner [Tue, 22 Mar 2016 11:13:01 +0000 (12:13 +0100)] 
Simplify implementation of hashtable.c

Issue #26588: Remove copy_data, free_data and get_data_size callbacks from
hashtable.h. These callbacks are not used in Python and makes the code more
complex.

Remove also the _Py_HASHTABLE_ENTRY_DATA_AS_VOID_P() macro which uses an unsafe
pointer dereference (can cause memory alignment issue). Replace the macro usage
with _Py_HASHTABLE_ENTRY_READ_DATA() which is implemented with the safe
memcpy() function.

10 years agoIssue #24266: Merge readline Ctrl+C handling from 3.5
Martin Panter [Tue, 22 Mar 2016 09:28:58 +0000 (09:28 +0000)] 
Issue #24266: Merge readline Ctrl+C handling from 3.5

10 years agoIssue #24266: Cancel history search mode with Ctrl+C in Readline 7
Martin Panter [Tue, 22 Mar 2016 07:24:05 +0000 (07:24 +0000)] 
Issue #24266: Cancel history search mode with Ctrl+C in Readline 7

10 years agomerge 3.5 (#17167)
Benjamin Peterson [Tue, 22 Mar 2016 05:31:31 +0000 (22:31 -0700)] 
merge 3.5 (#17167)

10 years agomerge 3.4 (#17167)
Benjamin Peterson [Tue, 22 Mar 2016 05:31:24 +0000 (22:31 -0700)] 
merge 3.4 (#17167)

10 years agoremove useless $ keyword (closes #17167)
Benjamin Peterson [Tue, 22 Mar 2016 05:31:02 +0000 (22:31 -0700)] 
remove useless $ keyword (closes #17167)

10 years agoIssue #15699: Merge readline fixup from 3.5
Martin Panter [Tue, 22 Mar 2016 02:26:18 +0000 (02:26 +0000)] 
Issue #15699: Merge readline fixup from 3.5

10 years agoIssue #15699: Reunite comment with variable
Martin Panter [Tue, 22 Mar 2016 02:19:29 +0000 (02:19 +0000)] 
Issue #15699: Reunite comment with variable

10 years agoIssue #26588: Fix compilation warning on Windows
Victor Stinner [Mon, 21 Mar 2016 22:05:08 +0000 (23:05 +0100)] 
Issue #26588: Fix compilation warning on Windows

10 years agohashtable.h now supports keys of any size
Victor Stinner [Mon, 21 Mar 2016 21:00:58 +0000 (22:00 +0100)] 
hashtable.h now supports keys of any size

Issue #26588: hashtable.h now supports keys of any size, not only
sizeof(void*). It allows to support key larger than sizeof(void*), but also to
use less memory for key smaller than sizeof(void*).

10 years agoIssue #26525: Change ord example from nu to more easily recognized Euro sign.
Terry Jan Reedy [Mon, 21 Mar 2016 01:18:40 +0000 (21:18 -0400)] 
Issue #26525: Change ord example from nu to more easily recognized Euro sign.

10 years agoIssue #15660: Further clarify 0 prefix for width specifier in formats.
Terry Jan Reedy [Mon, 21 Mar 2016 01:05:57 +0000 (21:05 -0400)] 
Issue #15660: Further clarify 0 prefix for width specifier in formats.

10 years agoIssue #26581: Use the first coding cookie on a line, not the last one.
Serhiy Storchaka [Sun, 20 Mar 2016 21:36:29 +0000 (23:36 +0200)] 
Issue #26581: Use the first coding cookie on a line, not the last one.

10 years agoAdded new tests for detecting Python source code encoding.
Serhiy Storchaka [Sun, 20 Mar 2016 20:29:40 +0000 (22:29 +0200)] 
Added new tests for detecting Python source code encoding.

10 years agoIssue #12813: uuid.uuid4() no longer depends on ctypes
Berker Peksag [Sun, 20 Mar 2016 15:29:56 +0000 (17:29 +0200)] 
Issue #12813: uuid.uuid4() no longer depends on ctypes

uuid.uuid4() always uses os.urandom() after 756d040aa8e8.

10 years agoIssue #19164: Improve exception message of uuid.UUID()
Berker Peksag [Sun, 20 Mar 2016 14:49:10 +0000 (16:49 +0200)] 
Issue #19164: Improve exception message of uuid.UUID()

Patch by jgauthier.

10 years agoIssue #26593: Fix typo in logging HOWTO
Berker Peksag [Sun, 20 Mar 2016 10:50:56 +0000 (12:50 +0200)] 
Issue #26593: Fix typo in logging HOWTO

Patch by Andrew Szeto.

10 years agoIssue #19265: Improve test coverage of datetime.tzinfo
Berker Peksag [Sat, 19 Mar 2016 11:16:32 +0000 (13:16 +0200)] 
Issue #19265: Improve test coverage of datetime.tzinfo

Without the patch, line 1010 of Lib/datetime.py wasn't covered
by the test suite.

Patch by Colin Williams.

10 years agocleanup iobase.c
Victor Stinner [Sat, 19 Mar 2016 09:36:36 +0000 (10:36 +0100)] 
cleanup iobase.c

casting iobase_finalize to destructor is not needed

10 years agoFix test_ssl.test_refcycle()
Victor Stinner [Mon, 21 Mar 2016 16:26:04 +0000 (17:26 +0100)] 
Fix test_ssl.test_refcycle()

Issue #26590: support.check_warnings() stores warnins, but ResourceWarning now
comes with a reference to the socket object which indirectly keeps the socket
alive.

10 years agoAdd socket finalizer
Victor Stinner [Mon, 21 Mar 2016 15:36:48 +0000 (16:36 +0100)] 
Add socket finalizer

Issue #26590: Implement a safe finalizer for the _socket.socket type. It now
releases the GIL to close the socket. Use PyErr_ResourceWarning() to raise the
ResourceWarning to pass the socket object to the warning logger, to get the
traceback where the socket was created (allocated).

10 years agoOoops, revert changeset ea9efa06c137
Victor Stinner [Mon, 21 Mar 2016 13:36:39 +0000 (14:36 +0100)] 
Ooops, revert changeset ea9efa06c137

Change pushed by mistake, the patch is still under review :-/

"""
_tracemalloc: add domain to trace keys

* hashtable.h: key has now a variable size
* _tracemalloc uses (pointer: void*, domain: unsigned int) as key for traces
"""

10 years agoOptimize bytes.replace(b'', b'.')
Victor Stinner [Mon, 21 Mar 2016 09:38:58 +0000 (10:38 +0100)] 
Optimize bytes.replace(b'', b'.')

Issue #26574: Optimize bytes.replace(b'', b'.') and
bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.

10 years agoIssue #26560: Avoid potential ValueError in BaseHandler.start_response
Berker Peksag [Sat, 19 Mar 2016 07:04:59 +0000 (09:04 +0200)] 
Issue #26560: Avoid potential ValueError in BaseHandler.start_response

Initial patch by Peter Inglesby.

10 years ago_tracemalloc: add domain to trace keys
Victor Stinner [Fri, 18 Mar 2016 20:52:22 +0000 (21:52 +0100)] 
_tracemalloc: add domain to trace keys

* hashtable.h: key has now a variable size
* _tracemalloc uses (pointer: void*, domain: unsigned int) as key for traces

10 years agoMerge with 3.5
Terry Jan Reedy [Mon, 21 Mar 2016 01:18:54 +0000 (21:18 -0400)] 
Merge with 3.5

10 years agoMerge with 3.5
Terry Jan Reedy [Mon, 21 Mar 2016 01:06:15 +0000 (21:06 -0400)] 
Merge with 3.5

10 years agoIssue #26581: Use the first coding cookie on a line, not the last one.
Serhiy Storchaka [Sun, 20 Mar 2016 21:47:48 +0000 (23:47 +0200)] 
Issue #26581: Use the first coding cookie on a line, not the last one.

10 years agoIssues #25643, #26581: Added new tests for detecting Python source code encoding.
Serhiy Storchaka [Sun, 20 Mar 2016 21:12:00 +0000 (23:12 +0200)] 
Issues #25643, #26581: Added new tests for detecting Python source code encoding.

10 years agoIssue #12813: uuid.uuid4() no longer depends on ctypes
Berker Peksag [Sun, 20 Mar 2016 15:30:25 +0000 (17:30 +0200)] 
Issue #12813: uuid.uuid4() no longer depends on ctypes

uuid.uuid4() always uses os.urandom() after 756d040aa8e8.

10 years agoIssue #19164: Improve exception message of uuid.UUID()
Berker Peksag [Sun, 20 Mar 2016 14:49:29 +0000 (16:49 +0200)] 
Issue #19164: Improve exception message of uuid.UUID()

Patch by jgauthier.

10 years agoIssue #26593: Fix typo in logging HOWTO
Berker Peksag [Sun, 20 Mar 2016 10:51:16 +0000 (12:51 +0200)] 
Issue #26593: Fix typo in logging HOWTO

Patch by Andrew Szeto.

10 years agoIssue #19265: Improve test coverage of datetime.tzinfo
Berker Peksag [Sat, 19 Mar 2016 11:16:52 +0000 (13:16 +0200)] 
Issue #19265: Improve test coverage of datetime.tzinfo

Without the patch, line 1010 of Lib/datetime.py wasn't covered
by the test suite.

Patch by Colin Williams.

10 years agoIssue #18787: spwd.getspnam() now raises a PermissionError if the user
Berker Peksag [Sat, 19 Mar 2016 09:44:17 +0000 (11:44 +0200)] 
Issue #18787: spwd.getspnam() now raises a PermissionError if the user
doesn't have privileges.

10 years agofix indentation in Py_DECREF()
Victor Stinner [Sat, 19 Mar 2016 09:33:50 +0000 (10:33 +0100)] 
fix indentation in Py_DECREF()

10 years agoIssue #26567: enhance ResourceWarning example
Victor Stinner [Sat, 19 Mar 2016 09:33:25 +0000 (10:33 +0100)] 
Issue #26567: enhance ResourceWarning example

10 years agoTry again to fix test_warnings on Windows
Victor Stinner [Sat, 19 Mar 2016 09:00:08 +0000 (10:00 +0100)] 
Try again to fix test_warnings on Windows

Issue #26567: normalize newlines in test_tracemalloc.

10 years agoIssue #26560: Avoid potential ValueError in BaseHandler.start_response
Berker Peksag [Sat, 19 Mar 2016 07:05:59 +0000 (09:05 +0200)] 
Issue #26560: Avoid potential ValueError in BaseHandler.start_response

Initial patch by Peter Inglesby.

10 years agoTry to fix test_warnings on Windows
Victor Stinner [Sat, 19 Mar 2016 01:51:45 +0000 (02:51 +0100)] 
Try to fix test_warnings on Windows

Issue #26567.

10 years agoResourceWarning: Revert change on socket and scandir
Victor Stinner [Sat, 19 Mar 2016 01:01:48 +0000 (02:01 +0100)] 
ResourceWarning: Revert change on socket and scandir

io.FileIO has a safe implementation of destructor, but not socket nor scandir.