summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484)Serhiy Storchaka2017-05-062-21/+13
|
* bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367)Jelle Zijlstra2017-05-054-4/+26
| | | Thanks to Jelle Zijlstra for the patch.
* bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478)torsava2017-05-053-7/+12
| | | | | | | | | | | | | * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash
* bpo-29920: Document cgitb.text() and cgitb.html() functions (GH-849)masklinn2017-05-051-0/+18
|
* bpo-30279: Remove unused Python/thread_foobar.h (#1473)Masayuki Yamamoto2017-05-052-138/+0
| | | | | | Python/thread_foobar.h is the template code that is threading adaptation for new platforms, also hasn't been used on actual platforms. Python/thread_*.h give concrete examples of adaptation instead of the template code.
* bpo-30264: ExpatParser closes the source on error (#1451)Victor Stinner2017-05-052-17/+40
| | | | | | | | ExpatParser.parse() of xml.sax.xmlreader now always closes the source: close the file object or the urllib object if source is a string (not an open file-like object). The change fixes a ResourceWarning on parsing error. Add test_parse_close_source() unit test.
* bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and ↵Serhiy Storchaka2017-05-054-44/+83
| | | | _sre.unicode_tolower(). (#1468)
* bpo-30243: Fixed the possibility of a crash in _json. (#1420)Serhiy Storchaka2017-05-052-66/+24
| | | | | | It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed.
* bpo-30215: Make re.compile() locale agnostic. (#1361)Serhiy Storchaka2017-05-059-23/+141
| | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
* Make code coverage less strict (GH-1438)Brett Cannon2017-05-041-8/+2
| | | Set the target to be 90% since there is enough OS-specific code and things that require manual testing that we will never hit 100%. Also turn off the status checks since they are so inconsistent in terms of flagging a PR as passing/failing that they aren't useful and can actually block merging from a phone.
* bpo-30273: Update sysconfig (#1464)Victor Stinner2017-05-042-2/+1
| | | | | | | | | | The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed.
* bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319)Antoine Pitrou2017-05-042-6/+17
| | | | | | * bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver * Tweak comment
* bpo-30263: regrtest: log system load (#1452)Victor Stinner2017-05-043-25/+39
| | | | | | | | * bpo-30263: regrtest: log system load * regrtest: log the number of CPUs Log the number of CPUs in the header. --verbose now imply --header.
* bpo-29956: Improve the math.exp() related documentation. (#1073)Serhiy Storchaka2017-05-043-14/+28
|
* bpo-30166: Import command-line parsing modules only when needed. (#1293)Serhiy Storchaka2017-05-047-12/+20
|
* bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443)Victor Stinner2017-05-031-0/+9
| | | | | is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed.
* bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316)Serhiy Storchaka2017-05-032-20/+43
|
* Add myself to mention-bot's alwaysNotifyForPaths for ssl/hashlib (#1425)Christian Heimes2017-05-031-1/+10
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Explicitly mention what should (not) be discussed on GitHub (GH-1437)Brett Cannon2017-05-031-0/+3
|
* bpo-28315: Improve code examples in docs (GH-1372)UltimateCoder2017-05-0312-30/+30
| | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
* bpo-23404: make touch becomes make regen-all (#1405)Victor Stinner2017-05-037-263/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python.
* bpo-30103: Allow Uuencode in Python using backtick as zero instead of space ↵Xiang Zhang2017-05-0310-67/+137
| | | | | | (#1326)
* Fix tests: getsockname() can return None on OS X on unbound sockets (#1400)Antoine Pitrou2017-05-021-2/+2
|
* bpo-30232: Regenerate configure (#1396)Victor Stinner2017-05-021-1/+4
| | | Run autoconf.
* bpo-30232: Support Git worktree in configure.ac (#1391)Victor Stinner2017-05-021-1/+1
| | | | Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists.
* Remove outdated tests in test_isinstance (GH-1393)Jim Fasarakis-Hilliard2017-05-021-17/+1
| | | There is no need to test for new-style classes versus classic classes in Python 3.
* bpo-28556: Routine updates to typing (#1366)Ivan Levkivskyi2017-05-023-9/+81
| | | | | - Add NoReturn type - Use WrapperDescriptorType (original PR by Jim Fasarakis-Hilliard) - Minor bug-fixes
* bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux (#1370)Antoine Pitrou2017-05-023-3/+9
| | | | | | * bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux * Add NEWS entry
* Fix typo in selectors.rst (#1383)Tong SHEN2017-05-021-1/+1
| | | decriptor -> descriptor
* bpo-30228: FileIO seek() and tell() set seekable (#1384)Victor Stinner2017-05-022-15/+24
| | | | | | | FileIO.seek() and FileIO.tell() method now set the internal seekable attribute to avoid one syscall on open() (in buffered or text mode). The seekable property is now also more reliable since its value is set correctly on memory allocation failure.
* bpo-30199: test_ssl closes all asyncore channels (#1381)Victor Stinner2017-05-021-1/+3
| | | | | | | | | | | | AsyncoreEchoServer of test_ssl now calls asyncore.close_all(ignore_all=True) to ensure that asyncore.socket_map is cleared once the test completes, even if ConnectionHandler was not correctly unregistered. Fix the following warning: Warning -- asyncore.socket_map was modified by test_ssl Before: {} After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>}
* bpo-30132: distutils BuildExtTestCase use temp_cwd (#1380)Victor Stinner2017-05-021-18/+18
| | | | | | | BuildExtTestCase of test_distutils now uses support.temp_cwd() in setUp() to remove files created in the current working in all BuildExtTestCase unit tests, not only test_build_ext(). Move also tearDown() just after setUp().
* Clean up some confusing text left by PROTOCOL_SSLv23 -> PROTOCOL_TLS ↵Nathaniel J. Smith2017-05-021-3/+3
| | | | transition (#1355)
* bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331)Giampaolo Rodola2017-05-013-18/+31
| | | | | | | | | | | | * #30190 / unittest / assertAlmostEqual(delta=...) / error msg: show the difference between the 2 numbers in case of failure * safe_repr() diff * also show difference when passing 'places' argument * refactoring * update Misc/NEWS
* restore *data* parameter of binascii.b2a_base64 to positional-only (#1352)Xiang Zhang2017-05-012-4/+5
|
* bpo-29679: Implement @contextlib.asynccontextmanager (#360)Jelle Zijlstra2017-05-015-6/+343
|
* bpo-30208: DOC: fix small typos in IDLE (#1354)csabella2017-04-291-8/+8
|
* bpo-30158: Fix deprecation warnings in test_importlib introduced by ↵Serhiy Storchaka2017-04-291-13/+16
| | | | bpo-29576. (#1285)
* Check that Python is 64-bit before enabling BLAKE2_USE_SSE. (#1332)Neil Schemenauer2017-04-281-2/+5
|
* bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. ↵Serhiy Storchaka2017-04-284-13/+43
| | | | | | | | | | | | | (#1341) * bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. They now work when delete replaced attribute or item inside the with statement. The old value of the attribute or item (or None if it doesn't exist) now will be assigned to the target of the "as" clause, if there is one. * Update docstrings.
* Improve the grammar in windows.rst (GH-1330)Wieland Hoffmann2017-04-281-3/+3
|
* bpo-30104: Only use -fno-strict-aliasing on dtoa.c (#1340)Victor Stinner2017-04-283-16/+17
| | | | On clang, only compile dtoa.c with -fno-strict-aliasing, use strict aliasing to compile all other C files.
* bpo-30174: Remove duplicate definition from pickletools (#1301)Jelle Zijlstra2017-04-271-29/+0
| | | | There were two almost identical definitions of bytes1.
* bpo-30175: Skip client cert tests of test_imaplib (#1320)Victor Stinner2017-04-272-1/+12
| | | | | | | | | | | | | * bpo-30175: Skip client cert tests of test_imaplib The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore. * bpo-30188: Catch EOFError in NetworkedNNTPTests test_nntplib fails randomly with EOFError in NetworkedNNTPTests.setUpClass(). Catch EOFError to skip tests in that case.
* bpo-27200: Fix several doctests (GH-604)Marco Buttu2017-04-277-24/+39
|
* Use the correct name for ISO in Unicode HOWTO. (#1312)Jesse Gonzalez2017-04-271-3/+3
|
* bpo-28415: Note 0 conversion different between Python and C (#885)Louie Lu2017-04-272-42/+48
|
* bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1296)Dong-hee Na2017-04-261-7/+0
|
* bpo-30101: Add support for curses.A_ITALIC. (#1015)Eijebong2017-04-264-0/+11
|
* bpo-30131: test_logging now joins queue threads (#1298)Victor Stinner2017-04-261-0/+8
| | | | | | | | QueueListenerTest of test_logging now closes the multiprocessing Queue and joins its thread to prevent leaking dangling threads to following tests. Add also @support.reap_threads to detect earlier if a test leaks threads (and try to "cleanup" these threads).