Commit Graph

98054 Commits

Author SHA1 Message Date
Ned Deily 05217f2ead Version v3.6.2
-----BEGIN PGP SIGNATURE-----
 
 iQIcBAABCgAGBQJZYFMFAAoJEC00fqaqZUIdh1kQAI+hHiO2A8SXiM6MCO1mGsT6
 U29CtF1sRAMILqMiA11Hud4gp9cE+yuWNmI3V/O+7LtMFXksB/3VN1pdIo3TV8YS
 PAvUTYl9/PGimc0+X55b8b0R3x3t1fmlzT+lgMFYQrtQMxUYbeCXtgBpL5EEe6m6
 6ODsBG/IKsu4Ki7KHiUZzFW8YW7Ice76iGwhOMypkSkwOk8aZNnc2qRDvKTbQGtX
 QIAAOcoJYTneTN0648YVKr+Jtxl0QY8Kzvoc3ywGDlDIgklwC6DLd284nYbg2sRw
 8W8DHcZyrknLEQRvfDHC9gn21Cfmd1E6jHMrit2rvRIqJGL50ibgZi109/wCJ/Vs
 Y9HkzgOvW43Y3tnAbkvv6+ZeUtGluon9Hz75B4GS1FhXkMUL/eTLmtHVjafKMr/0
 IBWZwcN+E+xiGGRmNJzXrpTXZ4PoKg1LPr1Q9Z6vVqQB45NUZxE0uqpt6NX5MdEj
 C1pyVUbagIj75sFoYCc+CjO9LkK7Ez9XVoQ9yjPxjXs73fxsD6BPpQD8w4+D1rDC
 mqKbsCIYls70c+MTUaibwYKbFI5x4OWwlA+Aw3sf5kDTFAXgu2qrT4nuEXXpXgAN
 Dw82Qm9WvxhwahnghQO3Y2wv9QhiH3h2puvydWYGVdBs6KmkRgfrHdMCLIj4cFSy
 /+BuraUHtCdR2S4q/R26
 =CWhL
 -----END PGP SIGNATURE-----

Merge tag 'v3.6.2' into 3.6

Version v3.6.2
2017-07-17 00:42:07 -04:00
Serhiy Storchaka a819e5e1e6 [3.6] bpo-30936: Fix a reference leak in json when fail to sort keys. (GH-2712). (#2727)
(cherry picked from commit 49f6449ef4)
2017-07-16 07:48:08 +03:00
Serhiy Storchaka 28343e3392 [3.6] bpo-30876: Relative import from unloaded package now reimports the package (GH-2639) (#2676)
instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than
SystemError.
(cherry picked from commit 8a9cd20edc)
2017-07-16 07:44:25 +03:00
terryjreedy 65de1f3672 [3.6] bpo-30934: Document coverage details for idlelib tests (GH-2711) (#2726)
* Add section to idlelib/idle-test/README.txt.
* Include check that branches are taken both ways.
* Exclude IDLE-specific code that does not run during unit tests.
(cherry picked from commit 95bebb7)
2017-07-16 00:39:59 -04:00
Ned Deily bbd0f423d2 bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2722)
(cherry picked from commit 50f58163a6)
2017-07-15 16:56:13 -04:00
Łukasz Rogalski ea9cbe0a5c Doc that 'sorted' args are keyword-only, fix 'reverse' default (#2709)
backport
2017-07-14 15:57:19 -04:00
terryjreedy 1aafd9c8bd [3.6] Update idlelib/NEWS.txt. (GH-2703) (#2704)
(cherry picked from commit 0d0a32f)
2017-07-14 00:29:05 -04:00
terryjreedy 9a09c667cf [3.6] bpo-30913: IDLE: Document tk vars, attributes, and methods for ConfigDialog (GH-2697) (#2702)
The will help writing dialog improvements and splitting the class into multiple classes.
Original patch by Cheryl Sabella.
(cherry picked from commit 36329a4)
2017-07-13 23:53:30 -04:00
terryjreedy 42abf7f973 [3.6] bpo-30870: IDLE: Add configdialog fontlist selection unittest (GH-2666) (#2701)
Initial patch by Louie Lu.
(cherry picked from commit 9b622fb)
2017-07-13 22:24:55 -04:00
Steve Dower d8e522f7cf bpo-30731: python.manifest fix (#2328) (#2699)
bpo-30731: python.manifest fix
2017-07-13 21:51:50 +02:00
Serhiy Storchaka 7d0a995820 [3.6] bpo-30911: Add tests for bad boolean arguments for accelerated json (GH-2690) (#2692)
encoder and decoder.
(cherry picked from commit d3aaa2f)
2017-07-13 11:40:25 +03:00
terryjreedy a9bf62cadf [3.6] bpo-30899: Add unittests, 100% coverage, for IDLE's two ConfigParser subclasses. (GH-2662) (#2685)
Patch by Louie Lu.
(cherry picked from commit 50c9435)
2017-07-12 14:42:37 -04:00
terryjreedy c0179483f1 [3.6] bpo-30779: IDLE: fix changes.delete_section calls in configdialog (GH-2667) (#2674)
Also improve test of config.ConfigChanges.delete_section.
Original patch by Cheryl Sabella.
(cherry picked from commit 6d13b22)
2017-07-11 19:50:10 -04:00
terryjreedy 675c1adfe5 [3.6] bpo-30881: IDLE: add docstrings to browser.py (GH-2638) (#2663)
Patch by Cheryl Sabella.
(cherry picked from commit ba35227)
2017-07-11 02:53:32 -04:00
terryjreedy 953e527763 [3.6] bpo-30870: IDLE -- fix logic error in eae2537. (GH-2660) (#2661)
(cherry picked from commit 5b62b35)
2017-07-11 02:16:41 -04:00
Serhiy Storchaka 82a9075600 [3.6] bpo-22207: Add checks for possible integer overflows in unicodeobject.c. (GH-2623) (#2658)
Based on patch by Victor Stinner.
(cherry picked from commit 64e461b)
2017-07-11 07:27:56 +03:00
Serhiy Storchaka ecfe4f678b [3.6] bpo-30879: os.listdir() and os.scandir() now emit bytes names when (GH-2634) (#2656)
called with bytes-like argument..
(cherry picked from commit 1180e5a518)
2017-07-11 07:16:11 +03:00
Victor Stinner fe6e686c27 bpo-30891: Fix importlib _find_and_load() race condition (#2646) (#2651)
* Rewrite importlib _get_module_lock(): it is now responsible to hold
  the imp lock directly.
* _find_and_load() now holds the module lock to check if name is in
  sys.modules to prevent a race condition
(cherry picked from commit 4f9a446f3f)
2017-07-10 23:16:27 +02:00
Victor Stinner 044e156426 bpo-30892: Fix _elementtree module initialization (#2647) (#2649)
Handle getattr(copy, 'deepcopy') error in _elementtree module
initialization.
(cherry picked from commit b136f11f3a)
2017-07-10 23:12:37 +02:00
terryjreedy 8e3f73e549 [3.6] bpo-30851: IDLE: Remove unused tk variables in configdialog. (GH-2626) (#2648)
One is a duplicate, one is set but cannot be altered by users.
Patch by Cheryl Sabella.
(cherry picked from commit aa8d0a2)
2017-07-10 15:11:45 -04:00
Victor Stinner 7f3d65d6e4 bpo-30886: Fix multiprocessing.Queue.join_thread() (#2642) (#2643)
multiprocessing.Queue.join_thread() now waits until the thread
completes, even if the thread was started by the same process which
created the queue.

Fix the following warning which occurs randomly when running
test_handle_called_with_mp_queue of test_logging.QueueListenerTest:

Warning -- threading_cleanup() failed to cleanup -1 threads after 4 sec (count: 0, dangling: 1)
(cherry picked from commit 3b69d911c5)
2017-07-10 13:43:20 +02:00
terryjreedy 7ab3342333 [3.6] bpo-30870: IDLE: Change sample font when select by key-up/down (GH-2617) (#2640)
Patch by Louie Lu.
(cherry picked from commit bb2bae8)
2017-07-09 19:26:32 -04:00
Nir Soffer 04f77d4677 [3.6] bpo-29854: Fix segfault in call_readline() (GH-728)
If history-length is set in .inputrc, and the history file is double the
history size (or more), history_get(N) returns NULL, and python
segfaults. Fix that by checking for NULL return value.

It seems that the root cause is incorrect handling of bigger history in
readline, but Python should not segfault even if readline returns
unexpected value.

This issue affects only GNU readline. When using libedit emulation
system history size option does not work.
2017-07-08 21:51:21 +03:00
Ned Deily 03e0df66b8 Update for post-3.6.2rc2 2017-07-08 00:49:40 -04:00
Ned Deily b79d58ec25 Tag v3.6.2rc2
-----BEGIN PGP SIGNATURE-----
 
 iQIcBAABCgAGBQJZXzWqAAoJEC00fqaqZUIdf0gQAOLY12G46cUI3tfpR1Pa6DAy
 SjO4Yb1tIpXyU+z/7VPbFywtk7zmJpmDWKsCZpWf9eA7eE2LMXfv5UEuKqQ2YOch
 L6z91CuJpCKbYA7/Wss8/GIbcXlhlhoaeaRbyt6vA99JN7b2ecC+iIVQJMnEMgfg
 zNAlKrI7qK4u4PoVT+pLjKDHES+aqYr+1v+/TwC/hGB+uBIb4RCxIeQIQxUayhCO
 7mFVsjGcBHvFP0s7WzSz5RTz/MiLzZGHH7b6mi9tKS9nhl2u3wM1F4ptdcgxoii+
 p4hfYQOZZnEB0Rkb6GnbVnuoFKwUpE6M6Wdf7xYdt4GRag0+JDOs641wiVEZauMU
 X2dCDygesgsMM5KseVtEgGR05yeEee9nRum41fVlOs8ncUIvOyZ8ENJydsfgvWD6
 1cipZYtUcNPErH3Co9CB4ZRxd0zaV7VGnITYhM3RWlpHH2UkgyDMaAY98CclQwdR
 X/PUWPPrrY5dQW1EsjLi1v3p8UmVWGJgfZonxkWtj5wnSSFAPuHu5vWURQUf5KnI
 zN5poyAD7PTy3X6OU7lHEWD085kP30ciQ8g6joN8brW/wckch/dPJPP/loRJ7G8K
 zwXLrdJbn2FebeTGVHuXj8nmPftx3/INW+rri+3aEBu78T21ZK5AtgbtOIzlB4Mj
 NnRdVMwRQPP6ksrxnzb9
 =h+Lc
 -----END PGP SIGNATURE-----

Merge tag 'v3.6.2rc2' into 3.6

Tag v3.6.2rc2
2017-07-08 00:41:30 -04:00
Ned Deily 5fd33b5926 Version bump to 3.6.2final 2017-07-07 23:33:27 -04:00
terryjreedy 552f26680d [3.6] bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (GH-2629) (#2631)
(cherry picked from commit 223c7e7)
2017-07-07 22:47:37 -04:00
terryjreedy 9d8abf31c4 [3.6] bpo-30779: News (GH-2627) (#2630)
(cherry picked from commit 24f2e19)
2017-07-07 22:26:53 -04:00
terryjreedy edc034221f [3.6] bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put in config; test. (GH-2612) (#2625)
* In config, put dump test code in a function; run it and unittest in 'if __name__ == '__main__'.
* Add class config.ConfigChanges based on changes_class_v4.py on bpo issue.
* Add class test_config.ChangesTest, partly based on configdialog_tests_v1.py on bpo issue.
* Revise configdialog to use ConfigChanges, mostly as specified in tracker msg297804.
* Revise test_configdialog to match configdialog changes.  All tests pass in both files.
* Remove configdialog functions unused or moved to ConfigChanges.
Cheryl Sabella contributed parts of the patch.
(cherry picked from commit 349abd9)
2017-07-07 16:37:39 -04:00
Ned Deily 8913311345 Version bump to 3.6.2rc2 2017-07-07 03:16:00 -04:00
Ned Deily bdabd76660 bpo-30797, bpo-30694: Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2615)
(cherry picked from commit 05b72ede95)
2017-07-07 01:59:14 -04:00
Ned Deily 05b72ede95 bpo-30797, bpo-30694: Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2615) 2017-07-07 01:31:43 -04:00
Serhiy Storchaka d1d65015fc [3.6] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2378)
(cherry picked from commit 0ee32c1)
(cherry picked from commit 0e1f9e8d3e)
2017-07-06 23:51:12 -04:00
Serhiy Storchaka a9b16cff35 [3.6] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2360)
Prevent passing other invalid environment variables and command arguments..
(cherry picked from commit d174d24a5d)
(cherry picked from commit e7135751b8)
2017-07-06 23:48:43 -04:00
Victor Stinner c794b643c9 bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) (#2456)
Free also co_extra->ce_extras, not only co_extra.
(cherry picked from commit 23e7944eba)
(cherry picked from commit 26daad4ee1)
2017-07-06 23:45:50 -04:00
Segev Finer b6012f982f [3.6] bpo-30726: Also fix pyexpat.vcxproj (GH-2375) (#2570)
(cherry picked from commit 7526cadd64)
(cherry picked from commit d02c8416fe)
2017-07-06 23:42:49 -04:00
Victor Stinner 5777e79ecb [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349)
* bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348)

bpo-30726, bpo-29591: libexpat 2.2.1 of Modules/expat/ now uses
a winconfig.h configuration file which already defines:

* XML_NS
* XML_DTD
* BYTEORDER=1234
* XML_CONTEXT_BYTES=1024
* HAVE_MEMMOVE

Remove these defines from PCbuild/_elementtree.vcxproj to prevent
compiler warnings.

Co-Authored-By: Jeremy Kloth <jeremy.kloth@gmail.com>
(cherry picked from commit c8fb58bd79)

* bpo-30726: Fix elementtree warnings on Windows due to expat upgrade (#2319)

* bpo-30726: Fix elementtree warnings on Windows

Caused by usage of `getenv` which should be safe. And a few integer
truncations which should also be ok.

* bpo-30726: Don't ignore libexpat warnings which haypo intends to fix upstream

(cherry picked from commit 87c6555073)
(cherry picked from commit d32a059531)
2017-07-06 23:41:35 -04:00
Victor Stinner ea1ab803dd bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2313)
New file: Modules/expat/siphash.h.
(cherry picked from commit 5ff7132313)
(cherry picked from commit 4a66524006)
2017-07-06 23:37:10 -04:00
Victor Stinner b0fba8874a bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289)
The current regex based splitting produces a wrong result. For example::

  http://abc#@def

Web browsers parse that URL as ``http://abc/#@def``, that is, the host
is ``abc``, the path is ``/``, and the fragment is ``#@def``.
(cherry picked from commit 90e01e50ef)
(cherry picked from commit 536c1f1246)
2017-07-06 23:27:01 -04:00
Steve Dower 00134f64d9 bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2280)
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat
Also fixes bdist_wininst.vcxproj to use correct version in generated name.

(cherry picked from commit 06d6e3d0bb)
2017-07-06 23:19:09 -04:00
terryjreedy df0f993298 [3.6] bpo-30780: Fix error in idlelib.test_idle.test_configdialog (GH-2606) (#2613)
(cherry picked from commit 25a4206)
2017-07-06 23:16:31 -04:00
Joel Hillacre c60d2f5e86 bpo-30532: Fix whitespace folding in certain cases (#2591)
Leading whitespace was incorrectly dropped during folding of certain lines in the _header_value_parser's folding algorithm.  This makes the whitespace handling code consistent.
2017-07-06 17:28:22 -04:00
Segev Finer 5d2550cd2e [3.6] Fix case in .gitignore (GH-2607) (GH-2608)
(cherry picked from commit be5ebe5877)
2017-07-06 16:08:29 -05:00
terryjreedy d012648129 [3.6] Update idlelib/NEWS.txt with merges upto 2017 Jul 5. (GH-2595) (#2596)
(cherry picked from commit 1ccbad9c95)
2017-07-06 15:29:35 -04:00
Serhiy Storchaka 03b0e8374b [3.6] bpo-30814: Fixed a race condition when import a submodule from a package. (GH-2580). (#2598)
(cherry picked from commit b4baacee1a)
2017-07-06 08:38:24 +03:00
Yury Selivanov aaa4f99151 [3.6] bpo-30828: Fix out of bounds write in `asyncio.CFuture.remove_done_callback() (GH-2569) (#2590)
(cherry picked from commit 833a3b0d37)
2017-07-05 14:03:10 -04:00
Masayuki Yamamoto e3a0ff0d76 [3.6] bpo-30854: Fix compile error when --without-threads (GH-2581) (#2583)
* bpo-30854: Fix compile error when --without-threads

* bpo-30854: fix news
(cherry picked from commit 0c31163093)
2017-07-05 11:24:46 +02:00
terryjreedy 0884c40603 [3.6] NEWS for 30777 (GH-2576) (#2579)
(cherry picked from commit aaa917f)
2017-07-05 00:55:59 -04:00
terryjreedy 1278d29000 [3.6] bpo-21624: IDLE -- minor htest fixes (GH-2575) (#2578)
(cherry picked from commit 2000150)
2017-07-05 00:55:29 -04:00
terryjreedy e5bb112ba2 [3.6] bpo-30777: IDLE: configdialog - add docstrings and improve comments (GH-2440) (#2577)
Patch by Cheryl Sabella.
(cherry picked from commit 7eb5883)
2017-07-05 00:54:55 -04:00