summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.6] bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5603)Serhiy Storchaka2018-02-092-1/+11
| | | | | Co-authored-by: Jake Davis <jcdavis@awedge.net>. (cherry picked from commit 2411292ba8155327125d8a1da8a4c9fa003d5909)
* bpo-30928: IDLE - update NEWS.txt [GH-5539] (GH-5545)Terry Jan Reedy2018-02-051-3/+6
| | | | | Add entry for uniform lower context; add 'since' to be explicit. (cherry picked from commit 05e806767b857b1eab838e712828e3a7d57cabf1)
* bpo-32765: Update configdialog General tab create page docstring (GH-5529) ↵Miss Islington (bot)2018-02-051-0/+16
| | | | | | | | (GH-5538) Add new entries to the widget list. (cherry picked from commit 845d86485e35a26478aedb3dc127d632fdc65759) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)Terry Jan Reedy2018-02-048-13/+13
| | | | | | | | | Fix typos found by codespell in docs, docstrings, and comments. Fixes for the following files were in post-3.6 code and not backported: Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py, Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c. (cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
* [3.6] bpo-30928: prepare idlelib/NEWS.txt for 3.6.5 entries. (#5508)Terry Jan Reedy2018-02-031-3/+13
| | | | Add 3.6.4 and 3.6.5 headers; move 3.6.3 header below 3.6.4 entries; fix dates.
* [3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)Barry Warsaw2018-02-034-5/+35
| | | | | | | | | | * Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. * Make sure ``__spec__.origin` matches ``__file__`` for namespace packages. https://bugs.python.org/issue32303 https://bugs.python.org/issue32305. (cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2) Co-authored-by: Barry Warsaw <barry@python.org>
* [3.6] bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466) ↵Bar Harel2018-02-022-10/+72
| | | | | | | (#5502) (cherry picked from commit d41e9e0952393e64f2f9756d778553d704191086)
* bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() ↵Miss Islington (bot)2018-02-011-0/+19
| | | | | (GH-3000) (GH-3000) (#4101) (cherry picked from commit d4b93e21c2664d6a78e0656e7a7be0807be1c352)
* bpo-32137: The repr of deeply nested dict now raises a RecursionError ↵Miss Islington (bot)2018-02-013-3/+19
| | | | | | | | (GH-4570) (GH-4689) instead of crashing due to a stack overflow. This perhaps will fix similar problems in other extension types. (cherry picked from commit 1fb72d2ad243c965d4432b4e93884064001a2607)
* bpo-32727: smtplib's SMTP.send_message behaves differently with from_addr ↵Miss Islington (bot)2018-01-312-1/+19
| | | | | | | | and to_addrs (GH-5451) (#5455) Do not pass the name field in the 'from' address in the SMTP envelope. (cherry picked from commit 8d83e4ba7823827bcbc119db887004d5c3a63dc6) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.6] bpo-32583: Fix possible crashing in builtin Unicode decoders (GH-5325) ↵Xiang Zhang2018-01-311-0/+52
| | | | | | | (#5459) When using customized decode error handlers, it is possible for builtin decoders to write out-of-bounds and then crash.. (cherry picked from commit 2c7fd46e11333ef5e5cce34212f7d087694f3658)
* [3.6] compare with difflib not diff(1) (GH-5450) (GH-5453)Benjamin Peterson2018-01-301-13/+9
| | | | Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] closes bpo-30117: fix lib2to3 ParserIdempotency test (GH-1242) (GH-5443)Benjamin Peterson2018-01-302-10/+15
| | | | | | | | | | | | Fix two (in my opinion) spurious failure conditions in the lib2to3.tests.test_parser.TestParserIdempotency test_parser test. Use the same encoding found in the initial file to write a temp file for a diff. This retains the BOM if the encoding was initially utf-8-sig. If the file cannot be parsed using the normal grammar, try again with no print statement which should succeed for valid files using future print_function For case (1), the driver was correctly handling a BOM in a utf-8 file, but then the test was not writing a comparison file using 'utf-8-sig' to diff against, so the BOM got removed. I don't think that is the fault of the parser, and lib2to3 will retain the BOM. For case (2), lib2to3 pre-detects the use of from __future__ import print_function or allows the user to force this interpretation with a -p flag, and then selects a different grammar with the print statement removed. That makes the test cases unfair to this test as the driver itself doesn't know which grammar to use. As a minimal fix, the test will try using a grammar with the print statement, and if that fails fall back on a grammar without it. A more thorough handling of the idempotency test would to be to parse all files using both grammars and ignore if one of the two failed but otherwise check both. I didn't think this was necessary but can change.. (cherry picked from commit 14e976e00e65bf343ba0fca016c3c9132a843daf)
* closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) ↵Miss Islington (bot)2018-01-301-1/+1
| | | | | | | (GH-5442) (cherry picked from commit 95441809ef77a8df5e14601ade6c054ef7114c02) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] replace dynamic import with 'exec' with importlib.import_module ↵Benjamin Peterson2018-01-301-3/+4
| | | | | (GH-5433) (GH-5440) (cherry picked from commit 77526f05fa788d6fb12f2121fe6b96c130d9b717)
* bpo-27931: Fix email address header parsing error (GH-5329) (GH-5431)Miss Islington (bot)2018-01-292-1/+24
| | | | | | Correctly handle addresses whose username is an empty quoted string. (cherry picked from commit aa218d1649690d1c1ba86a9972f7fae646bf1a8f) Co-authored-by: jayyyin <jayyin11043@hotmail.com>
* bpo-20891: Remove test_capi.test_bpo20891() (#5425)Victor Stinner2018-01-291-13/+0
| | | | | | | | | | My first fix is not enough to make test_bpo20891() reliable. A second fix is needed and it was decided to not backport it, so remove the test instead. For Python 3.6, the workaround is to call PyEval_InitThreads() before spawning the first C thread. Python 3.7 will have both fixes.
* Add a test for pdb until command in coroutine (GH-5427) (#5428)Miss Islington (bot)2018-01-291-0/+46
| | | (cherry picked from commit 4f4ef0acbad81f4b05f370e8ff14ddf949773291)
* bpo-32650: Add an asyncgen pdb test (GH-5406) (#5419)Miss Islington (bot)2018-01-291-0/+60
| | | (cherry picked from commit 9ee1bf9ab5af8233ed8ec5c53d12a29dc1bd9c9d)
* [3.6] bpo-32650 Add support for async generators and more test for ↵Andrew Svetlov2018-01-292-7/+51
| | | | | coroutines in pdb (GH-5403). (#5411) (cherry picked from commit c7ab581db216aeeb1c2aa7af2f2198d2b7516383)
* bpo-32650: Add native coroutine support to bdb when stepping over line ↵Miss Islington (bot)2018-01-292-6/+61
| | | | | (GH-5400) (#5402) (cherry picked from commit 46877024423e98d1b872bf308dacacd583327207)
* [3.6] bpo-32228: Reset raw_pos after unwinding the raw stream (GH-4858) (#5389)Antoine Pitrou2018-01-281-0/+17
| | | | | Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size.. (cherry picked from commit 059f58ce938d9c3f0286412a4efb1b9131339421)
* bpo-32685: Improve suggestion for print statement (GH-5380)Miss Islington (bot)2018-01-281-0/+17
| | | | | | | | Better account for single-line compound statements and semi-colon separated statements when suggesting Py3 replacements for Py2 print statements. Initial patch by Nitish Chandra. (cherry picked from commit 43c0f1ac5ed8bc9c3bd048d2ce4de4c98a83de99)
* [3.6] bpo-32664: Add missing "|" connector in Exceptions doc (GH-1173) (GH-5372)Miss Islington (bot)2018-01-281-1/+1
| | | (cherry picked from commit 992ae6444cc745c23d3bcc604983cc8e39405bd2)
* [3.6] bpo-32304: Fix distutils upload for tar files ending with b'\r' ↵Bo Bayles2018-01-272-2/+26
| | | | | (GH-5264) (GH-5330) Patch by Bo Bayles.
* bpo-32667: Fix tests when $PATH contains a file (GH-5322) (#5323)Miss Islington (bot)2018-01-252-9/+8
| | | | | | Some tests failed when the PATH environment variable contained a path to an existing file. Fix tests to ignore also NotADirectoryError, not only FileNotFoundError and PermissionError. (cherry picked from commit b31206a223955d614d7769f95fb979d60f77bf87)
* [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses ↵Bo Bayles2018-01-242-4/+35
| | | | | | | (GH-5254) (#5290) * [3.6] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-5254). (cherry picked from commit 6b273f7f4056f8276f61a97c789d6bb4425e653c)
* bpo-32618: Fix test_mutatingdecodehandler not testing test.mutating ↵Miss Islington (bot)2018-01-231-3/+2
| | | | | | (GH-5269) (#5285) It should test both test.replacing and test.mutating instead of test test.replacing twice. (cherry picked from commit 370d04d1dcca50a52d59f40aff4d11434f71df6b)
* [3.6] bpo-32028: Fix suggestions for indented print statements (GH-5249)Miss Islington (bot)2018-01-201-0/+9
| | | | | | | | The suggested replacement for print statements previously failed to account for leading whitespace and hence could end up including unwanted text in the proposed call to the print builtin. Patch by Sanyam Khurana. (cherry picked from commit d57f26c753dce61f72b52b96db3a3253d9f2fc3e)
* [3.6] bpo-32588 Move _distutils_findvs into its own module (GH-5227) (#5228)Steve Dower2018-01-182-7/+6
|
* Use assertCountEqual instead of assertEqual. (GH-5223) (#5225)Miss Islington (bot)2018-01-171-3/+3
| | | | | This test doesn't care about order, the underlying filesystem APIs do not guarantee directory listings on subsequent calls will be in the same order. (cherry picked from commit 3941499d6c2a4d09f2ea476f84b9c4ddc4bdefa0)
* pythoninfo: add time.time and datetime.datetime.now (GH-5214) (#5219)Miss Islington (bot)2018-01-171-1/+13
| | | (cherry picked from commit 7d91c0250408e202243c77c1dc9afdb321b6b32f)
* Skip test_readline.test_nonascii() on C locale (GH-5203) (#5204)Miss Islington (bot)2018-01-161-0/+8
| | | | | | bpo-29240: On FreeBSD, if the LC_CTYPE locale is "C" or "POSIX", writing and reading non-ASCII bytes into/from a TTY works, but readline or ncurses ignores non-ASCII bytes on read. (cherry picked from commit c495e799ed376af91ae2ddf6c4bcc592490fe294)
* Add itertools recipe for directly finding the n-th combination (GH-5161) (#5174)Miss Islington (bot)2018-01-131-0/+33
| | | (cherry picked from commit d37258dd2e189141906bd234385096cd8e885d8d)
* bpo-32473: Improve ABCMeta._dump_registry() readability (GH-5091)Miss Islington (bot)2018-01-121-1/+3
| | | (cherry picked from commit ae12f5d4c98f2095c2aadd58981453e955044697)
* bpo-31802: Fix importing native path module before importing os. (GH-4017) ↵Miss Islington (bot)2018-01-074-32/+40
| | | | | (#5129) (cherry picked from commit 3460198f6ba40a839f105c381f07179aba1e8c61)
* bpo-32482: Fix suspicious code in tests for syntax and grammar. (GH-5086) ↵Miss Islington (bot)2018-01-042-8/+7
| | | | | (#5095) (cherry picked from commit 0cc99c8cd70d422e4b345837a907db30e9180ab9)
* bpo-32478: Add tests for 'break' and 'return' inside 'finally' clause. ↵Miss Islington (bot)2018-01-021-0/+74
| | | | | (GH-5078) (#5083) (cherry picked from commit 7cc42c356b0dc5ad9eaa9392789e84bd4aa1c7de)
* bpo-32416: Add two new tests in test_sys_settrace. (GH-5072) (#5073)Miss Islington (bot)2018-01-011-8/+30
| | | | Move other test to more proper place. (cherry picked from commit e8ed96550c6aa9a1e39c36e67e892994e25e2c41)
* remove unused import (GH-5040) (#5042)Miss Islington (bot)2017-12-291-1/+0
| | | (cherry picked from commit e325608740bee161ca7fefd09463d63099efa1b8)
* make PatternCompiler use the packaged grammar if possible (more bpo-24960) ↵Miss Islington (bot)2017-12-291-7/+7
| | | | | (GH-5034) (#5036) (cherry picked from commit e5f7dccefaa8d97ab53b3051acbb4a4d49379dc4)
* bpo-32440: Update the docs URL to https in help() (GH-5030) (GH-5031)Miss Islington (bot)2017-12-281-1/+1
| | | | | In pydoc.py, the reference to Python' documentation was in http. The link has been updated to use https. (cherry picked from commit e5681b9822c633c77ddfeb94585d58895e0ecff5)
* [3.6] bpo-32416: Refactor tests for the f_lineno setter and add new tests. ↵Serhiy Storchaka2017-12-271-246/+405
| | | | | (GH-4991). (#5016) (cherry picked from commit 53f9135667226f33e049e327db60fb033afbd77a)
* bpo-26133: Fix typos (GH-5010) (#5014)Miss Islington (bot)2017-12-262-2/+19
| | | | | | * Fix typos * Change warning text * Add test (cherry picked from commit a8f4e15f3d33084862ddd3a7d58cd00034e94f16)
* bpo-26133: Clear signals list on interpreter finalizing (GH-5002) (#5003)Miss Islington (bot)2017-12-241-4/+7
| | | (cherry picked from commit 4f146f9ed133b9ad56d4ee7a653396836af34067)
* correct wording (GH-4983) (#4984)Miss Islington (bot)2017-12-231-1/+1
| | | (cherry picked from commit d11e8e0d11c759cd0f96aebb59de914e4d62b8cd)
* bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files ↵Miss Islington (bot)2017-12-224-2/+42
| | | | | | | | | (GH-4977) (#4979) This is more complicated than it should be because we need to preserve the useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar has. We only look for the pickled grammar file with pkgutil.get_data and only if the source file does not exist. (cherry picked from commit 8a5877165e993afb2633cd48da5222326d3f6e0e)
* bpo-20891: Skip test_embed.test_bpo20891() (#4967) (#4969)Victor Stinner2017-12-211-0/+3
| | | | | | | | Skip the test failing randomly because of known race condition. Skip the test to fix macOS buildbots until a decision is made on the proper fix for the race condition. (cherry picked from commit 550ee051d605b909dd75ef686d8e1244a0994394)
* bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter ↵Miss Islington (bot)2017-12-211-2/+8
| | | | | shutdown (GH-4956) (#4962) (cherry picked from commit 4a02543cf97e8cbf9293741379f977b85531e4c2)
* bpo-32323: urllib.parse.urlsplit() must not lowercase() IPv6 scope value ↵Miss Islington (bot)2017-12-212-4/+15
| | | | | (GH-4867) (#4959) (cherry picked from commit fbd605151fcf2899b14575f4ddb9ce3c55e684ab)