Commit Graph

44666 Commits

Author SHA1 Message Date
Miss Islington (bot) e780d2f1f5 Make importlib.metadata a simple module (GH-15153) (GH-15154)
(cherry picked from commit 3a5c433fce)

Co-authored-by: Barry Warsaw <barry@python.org>
2019-08-06 21:38:22 -04:00
Miss Islington (bot) 5349f8cd78
bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
(cherry picked from commit 1213123005)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-08-04 17:08:16 -07:00
Miss Islington (bot) 9c95fc752c
bpo-37748: Re-order the Run menu. (GH-15115)
Put the most common choice, Run Module, at the top.
(cherry picked from commit 14070299cd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-08-04 14:04:49 -07:00
Miss Islington (bot) 0c16f6b307 bpo-28292: Mark calendar.py helper functions as private. (GH-15113) (GH-15116)
(cherry picked from commit b1c8ec010f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-04 13:34:56 -07:00
Miss Islington (bot) d7d607c000 bpo-36324: Update comments to include the target hash sums (GH-15110) (GH-15112)
(cherry picked from commit 8183bb8150)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-08-04 12:16:19 -07:00
Miss Islington (bot) 1d2b4dba6c
bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
Convert mouse y to line number in the sidebar rather than the text.
(cherry picked from commit 86f1a18abf)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-08-04 09:43:56 -07:00
Miss Islington (bot) dde944f9df
bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-14996)
There was a discrepancy between the Python and C implementations.

Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support
to test mixed type comparison.
(cherry picked from commit 17e52649c0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-08-04 03:01:55 -07:00
Miss Islington (bot) 4e402d37eb Correct description of HTTP status code 308. (GH-15098)
Permanent redirect was explained as a temporary redirect.
(cherry picked from commit 5c72badd06)

Co-authored-by: Florian Wendelborn <1133858+FlorianWendelborn@users.noreply.github.com>
2019-08-03 11:39:46 -07:00
Miss Islington (bot) 6b833901fe
bpo-30974: Change os.path.samefile docstring to match docs (GH-7337)
(cherry picked from commit 8e568ef266)

Co-authored-by: Timo Furrer <tuxtimo@gmail.com>
2019-08-02 16:04:53 -07:00
Miss Islington (bot) 79af3bd1d1
bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)
Previously pdb checked the $HOME environmental variable
to find the user .pdbrc. If $HOME is not set, the user
.pdbrc would not be found.

Change pdb to use `os.path.expanduser('~')` to determine
the user's home directory. Thus, if $HOME is not set (as
in tox or on Windows), os.path.expanduser('~') falls
back on other techniques for locating the user's home
directory.

This follows pip's implementation for loading .piprc.

Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org>
(cherry picked from commit 7ea9a85f13)

Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
2019-08-02 15:42:50 -07:00
Miss Islington (bot) 1cc70322c9
bpo-16970: Adding error message for invalid args (GH-14844)
BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors

https://bugs.python.org/issue16970
(cherry picked from commit 4b3e975923)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
2019-08-01 22:16:44 -07:00
Miss Islington (bot) 8399641c34
bpo-18049: Sync thread stack size to main thread size on macOS (GH-14748)
This changeset increases the default size of the stack
for threads on macOS to the size of the stack
of the main thread and reenables the relevant
recursion test.
(cherry picked from commit 1a057bab0f)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2019-08-01 07:38:57 -07:00
Miss Islington (bot) 77fcccb532
bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
Improve performance of sre_parse._uniq function.
(cherry picked from commit 9f55551f3d)

Co-authored-by: yannvgn <hi@yannvgn.io>
2019-07-31 13:22:09 -07:00
Miss Islington (bot) d8b914a30b
bpo-37085: Expose SocketCAN bcm_msg_head flags (GH-13646)
Expose the CAN_BCM SocketCAN constants used in the bcm_msg_head struct
flags (provided by <linux/can/bcm.h>) under the socket library.

This adds the following constants with a CAN_BCM prefix:

  * SETTIMER
  * STARTTIMER
  * TX_COUNTEVT
  * TX_ANNOUNCE
  * TX_CP_CAN_ID
  * RX_FILTER_ID
  * RX_CHECK_DLC
  * RX_NO_AUTOTIMER
  * RX_ANNOUNCE_RESUME
  * TX_RESET_MULTI_IDX
  * RX_RTR_FRAME
  * CAN_FD_FRAME

The CAN_FD_FRAME flag was introduced in the 4.8 kernel, while the other
ones were present since SocketCAN drivers were mainlined in 2.6.25. As
such, it is probably unnecessary to guard against these constants being
missing.
(cherry picked from commit 31c4fd2a10)

Co-authored-by: karl ding <karlding@users.noreply.github.com>
2019-07-31 02:10:38 -07:00
Miss Islington (bot) 34de5dcf21
bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)
(cherry picked from commit fff5cb21ae)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-30 22:19:28 -07:00
Miss Islington (bot) 01c62c9f6b
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
(cherry picked from commit 0acb646b8e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-30 15:34:20 -07:00
Miss Islington (bot) 0f9efbcf9a Don't skip pickle check_frame_opcodes() (GH-15027)
This looks like the only place that proto 4 framing gets exercised
so leave it as part of the PGO task.
(cherry picked from commit eca7ffc61c)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
2019-07-30 13:10:15 -07:00
Miss Islington (bot) 382cb85401 bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) (#15024)
Mark some individual tests to skip when --pgo is used.  The tests
marked increase the PGO task time significantly and likely don't
help improve optimization of the final executable.
(cherry picked from commit 52a48e62c6)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
2019-07-30 11:34:32 -07:00
Miss Islington (bot) 8b50e3e272
bpo-34162: Update idlelib/news.txt. (GH-15011)
(cherry picked from commit f35c51d2ea)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-29 15:39:49 -07:00
Miss Islington (bot) 8513b90e11
bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (GH-15010)
They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
(cherry picked from commit e8874b85b4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-29 15:15:50 -07:00
Łukasz Langa 6f53a6824b Python 3.8.0b3
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl0+9AAACgkQsmmV4xAl
 BWjXqg//aKCwPmf0ZE8ZsW6Qlikrn/fovyiA37Uw3Lp7byI8AWpmjTGyDfbbOWvG
 VlifRgMTjdo4z4CrDBMumzDvQhud8/3ok1H/JpCo8Lwb/wEwOxmAQ8qZAtCo5oyA
 5yW/QyFkclsW/t7OAXSFvqkk0F6BzAvbMuaWwwzdfQP+MCTSrkrG3S29JJvBQ2VU
 DPZtfZ2RIkJo9pyI77OCsxILNVTtxLoD8EsqFEvEAanjDNqGSbyD7gxRSg5s27z7
 Tc7qw573oAYVRBb1GuYzeI7AhwwanH4JudUleROBvq3APgYNch6ROBcqlxLdGbvo
 c/hhXJAtCcrjxGLPllGgwfUboJe2ftw8Ory4uvkyAiaW5+3/17iETxXul0uFx0Mc
 dWRjXl47EYsyCkvNA8qckB/VGPunRbW6k4LEKiBWtig9SXmzRqoLYKiCETx0xdfK
 mP/8bX+LP1PG1ti2sYrUr6znRbVBL4u3e1yixQeqNZdzDN9PQykdW34svxxXBHOK
 hvQoGRB4L6zhbnrk2bsSUbAK1P+Ohl9oeNo6c7TNAxzxOeZcQ+CYBUY8aKCR8v5z
 c49YHT33bheaPAa5Sa4f1eVl/W0w6Pu5vT/r7g4ayvnS3f/Bz3+0Zk9FKy5NzJcl
 0yZ7gbsjVkJWbBFanZ0jRs5vgYefjacR7i/sE3Ha79s1950NZdI=
 =Azjr
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl0/XNcQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaMIrD/wLevGsmaVYOXngPZagB+iJA6Xexe+hhaNF
 /+zdiRevPA3z1zXbF2rJ7BmrJsL5AwvgZMDutj6Wdpg2//AwNly5XcrvbPCtrrPR
 qM6XFpgVGOsAM74E4VAr0a3OgHQJIgUMCYkqZ9EqWdEKHyk9tHeOUcxFlQgvd3Nn
 93jj5B8BuynkLEcgXJ5hxbn8dB7fC5gUNloQ+zcqdOgqvo3S4JZ2VCjvEaZlUprC
 pbhaRGzAbu6hUT6gbGUOB6qNBDfiZdSybps8AYpzYqj/+WKUWc5Cojr7N/KCeGRG
 9K+zH2WOzcD0UFLeXJmuAUL3rUtUjYtix/rLlpDY1p8VOkzfIR4F2iKnjtmNmTB9
 WnBDcpy0ITJF+meBhBX3xkfzzY9chj6AgEHZ/iXYhtIrZYTgIey/oyUyFNbZvsaO
 8BVkNoaa4DQFBVfz9bzIn/CVKS+cjrrv+4hxArqvlTpvqr5ueqYfRP2dXRHwYzum
 WczP3t2cq8GUj5MeEbHaRQV/JTY2CNtENazKG2OPCwsBNCfDxJ3DbSTpxJWSzz4P
 AnmhjLng7LAPsS8FZ4KuAmOKKlCbpgiVcZcYJdD+RUUtQufZLz7WOaRA0s8YnwjM
 7mhOHGIfUPZZFFLXDt3BefiwEVb5d16JWw6nKXItIpL4IJc8j2Q64ki9WbRZGH/m
 Oh32VYhYzw==
 =C154
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.0b3' into 3.8

Python 3.8.0b3
2019-07-29 22:53:25 +02:00
Miss Islington (bot) bf0b8a6cb2
Add additional test for multi-line SyntaxError (GH-15003)
(cherry picked from commit 44212ec811)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2019-07-29 08:26:29 -07:00
Miss Islington (bot) 9ea738e580
bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-14612)
https://bugs.python.org/issue37500

Add a new field to the compiler structure that allows to be configured
so no bytecode is emitted. In this way is possible to detect errors by
walking the nodes while preserving optimizations.

https://bugs.python.org/issue37500
(cherry picked from commit 18c5f9d44d)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2019-07-29 07:47:30 -07:00
Miss Islington (bot) cf52bd0b9b
Fix `SyntaxError` indicator printing too many spaces for multi-line strings (GH-14433)
(cherry picked from commit 5b94f3578c)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2019-07-29 07:18:47 -07:00
Łukasz Langa 4336222407
Python 3.8.0b3 2019-07-29 15:26:01 +02:00
Miss Islington (bot) 36fd7b6f01
bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and sqlite coverage (GH-14985)
https://bugs.python.org/issue36044

Automerge-Triggered-By: @zooba
(cherry picked from commit e1b9002472)

Co-authored-by: Steve Dower <steve.dower@python.org>
2019-07-28 18:20:02 -07:00
Miss Islington (bot) f96334c179 bpo-37697: Sync with importlib_metadata 0.19 (GH-14993) (GH-14995)
* bpo-37697: Sync with importlib_metadata 0.19

* Run make regen-importlib

* 📜🤖 Added by blurb_it.
(cherry picked from commit 049460da9c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2019-07-28 15:45:46 -04:00
Miss Islington (bot) c94386d013
bpo-37692: Improve highlight config sample (GH-14983)
Use an example shell interaction in the sample and better labels for shell elements.
(cherry picked from commit b222955355)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-28 09:39:03 -07:00
Miss Islington (bot) 76821bab9c bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) (GH-14984)
(cherry picked from commit 6b5f1b496f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-07-27 14:26:58 -07:00
Miss Islington (bot) 171019354a
bpo-37628: Fix IDLE config sample sizes (GH-14958)
The boxes for the font and highlight samples are now constrained by the overall config dialog size.  They gain scrollbars when the when a large font size makes the samples too large for the box.
(cherry picked from commit 3221a63c69)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-07-27 10:19:12 -07:00
Miss Islington (bot) f6ab188323
bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)
(cherry picked from commit 46ebd4a6a2)

Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-07-26 20:46:52 -07:00
Miss Islington (bot) c503390126
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
(cherry picked from commit b1eb20e68e)

Co-authored-by: Steve Dower <steve.dower@python.org>
2019-07-26 09:24:43 -07:00
Miss Islington (bot) 25cb4fd4fb
bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)
(cherry picked from commit 898318b53d)

Co-authored-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2019-07-25 09:18:20 -07:00
Miss Islington (bot) 69802f6163
closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package rather than listdir. (14942)
(cherry picked from commit 93e8aa62cf)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-24 17:00:39 -07:00
Miss Islington (bot) 0cdb21d6eb
bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)
(cherry picked from commit 5380def826)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2019-07-24 12:28:12 -07:00
Stefan Behnel bb697899aa
[3.8] bpo-37399: Correctly attach tail text to the last element/comment/pi (GH-14856) (GH-14936)
* bpo-37399: Correctly attach tail text to the last element/comment/pi, even when comments or pis are discarded.
Also fixes the insertion of PIs when "insert_pis=True" is configured for a TreeBuilder.
2019-07-24 20:46:01 +02:00
Miss Islington (bot) 9d54de1658
bpo-37667: Add regression test for regrtest. (GH-14929)
Verify that it appears to find roughly the right number of tests in the stdlib's testsuite.
(cherry picked from commit e95ac20103)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2019-07-23 23:30:27 -07:00
Miss Islington (bot) 9f77cfc37e
Only setup PGO tests when --pgo is enabled. (GH-14927)
(cherry picked from commit f0807ab24c)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2019-07-23 21:53:34 -07:00
Miss Islington (bot) fc63d5a361 bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920)
Stop depending on tkinter import *.
(cherry picked from commit c6fd6c83b7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-23 16:23:43 -04:00
Miss Islington (bot) 1da6a313dd
bpo-17535: IDLE editor line numbers (GH-14030)
(cherry picked from commit 7123ea009b)

Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-07-23 06:04:13 -07:00
Jeroen Demeyer bf8e82f976 [3.8] bpo-36974: separate vectorcall functions for each calling convention (GH-13781) (#14782) 2019-07-23 12:39:51 +02:00
Miss Islington (bot) 5dab5e7d24
bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)
(cherry picked from commit 1ebee37dde)

Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-07-23 03:18:41 -07:00
Miss Islington (bot) 2406672984
bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)
Reduce the number of unit tests run for the PGO generation task.  This
speeds up the task by a factor of about 15x.  Running the full unit test
suite is slow.  This change may result in a slightly less optimized build
since not as many code branches will be executed.  If you are willing to
wait for the much slower build, the old behavior can be restored using
'./configure [..] PROFILE_TASK="-m test --pgo-extended"'.  We make no
guarantees as to which PGO task set produces a faster build.  Users who
care should run their own relevant benchmarks as results can depend on
the environment, workload, and compiler tool chain.
(cherry picked from commit 4e16a4a311)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
2019-07-22 13:17:23 -07:00
Miss Islington (bot) 22fd679dc3 bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14902)
* Clear name and parent of mock in autospecced objects used with attach_mock

* Add NEWS entry

* Fix reversed order of comparison

* Test child and standalone function calls

* Use a helper function extracting mock to avoid code duplication and refactor tests.
(cherry picked from commit 7397cda997)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
2019-07-22 08:59:00 +01:00
Kyle Stanley 24b5b360fa [3.8] Fix typos in docs, comments and test assert messages (GH-14872). (#14900)
(cherry picked from commit 96e12d5f4f)

Co-authored-by: Min ho Kim <minho42@gmail.com>
2019-07-21 22:48:45 -04:00
Miss Islington (bot) 9325f4091b
bpo-37627: Initialize IDLE Custom Run dialog with previous entries (GH-14870)
Repeat the command line arguments most recently entered before so the user can edit them.
(cherry picked from commit 35b87e6001)

Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
2019-07-21 13:25:43 -07:00
Miss Islington (bot) a8cac5762c
Fix typo found by Min ho Kim (GH-14879)
(cherry picked from commit 8e3a7380ec)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-21 12:44:28 -07:00
Miss Islington (bot) e8b3a2e78a Minor whitespace, indentation, and quoting changes to improve internal consistency and appease linters (GH-14888) (GH-14889)
(cherry picked from commit 1c0e9bb94b)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-07-21 12:38:58 -07:00
Miss Islington (bot) c613c3319e bpo-36324: Make internal attributes for statistics.NormalDist() private. (GH-14871) (GH-14875) 2019-07-21 00:55:13 -07:00
Miss Islington (bot) e5bfd1ce9d bpo-36546: Clean-up comments (GH-14857) (#14859)
(cherry picked from commit eed5e9a956)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-07-19 02:17:53 -07:00