Commit Graph

103846 Commits

Author SHA1 Message Date
Miss Islington (bot) 117830de33
Bring Python into the new year. (GH-24036) (GH-24052)
(cherry picked from commit de6f20a6de)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-01-01 13:40:58 -05:00
Miss Islington (bot) 8200ee6669
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037) (GH-24041)
(cherry picked from commit ec3165320e)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-01-01 13:37:35 -05:00
Miss Islington (bot) 00278d4e61
bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23836)
Up until now, the `multiprocessing.pool.ThreadPool` class has gone
undocumented, despite being a public class in multiprocessing that is
included in `multiprocessing.pool.__all__`.
(cherry picked from commit 84ebcf271a)

Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
2020-12-18 13:38:49 -05:00
Benjamin Peterson 47f075d96b
[3.7] Bumps [actions/cache](https://github.com/actions/cache) from v1 to v2.1.3. (GH-23596)
* build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit a43fea8857)

* [3.7] build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>.
(cherry picked from commit a43fea8857)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 09:05:57 -06:00
Miss Islington (bot) db95802bdf
bpo-40791: Make compare_digest more constant-time. (GH-23438)
The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.

(This is change GH-1 from https://bugs.python.org/issue40791 .)
(cherry picked from commit 31729366e2)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
2020-11-22 11:33:09 -06:00
Steve Dower 9ae1742bdf
[3.7] bpo-42336: Improve PCbuild batch files (GH-23325) (GH-23373)
* bpo-42336: Improve PCbuild batch files (GH-23325)

* Remove ARM platforms
2020-11-18 13:01:52 -05:00
Serhiy Storchaka 225e365955
[3.7] bpo-42103: Improve validation of Plist files. (GH-22882) (#23117)
* Prevent some possible DoS attacks via providing invalid Plist files
  with extremely large number of objects or collection sizes.
* Raise InvalidFileException for too large bytes and string size instead of returning garbage.
* Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN).
* Raise InvalidFileException instead of TypeError for non-hashable dict keys.
* Add more tests for invalid Plist files..
(cherry picked from commit 34637a0ce2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-10 14:54:15 -05:00
larryhastings dd2804790d
[3.7] Remove 3.5 from Doc version switcher in master. (GH-22886) (#22890)
(cherry picked from commit 283f9a253b)
2020-10-22 07:30:11 -07:00
Miss Skeleton (bot) 43e5231038
bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) (GH-22578)
(cherry picked from commit 2ef5caa58f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-10-19 22:38:40 -04:00
Ned Deily e512bc799e
bpo-42051: Reject XML entity declarations in plist files (#22760) (GH-22801)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-10-19 22:36:27 -04:00
Pablo Galindo 9b5a023a5d
[3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22601)
(cherry picked from commit 27ac19cca2)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-10-08 19:50:37 +01:00
Ned Deily 4e02981de0
Post release updates 2020-08-17 18:18:11 -04:00
Ned Deily 13c94747c7
3.7.9 2020-08-15 01:20:16 -04:00
Ned Deily a0ad829596
bpo-41100: additional fixes for testing on macOS 11 Big Sur Intel
Note: macOS 11 is not yet released, this release of Python is not
fully supported on 11.0, and not all tests pass.
2020-08-15 01:08:56 -04:00
Miss Islington (bot) cf79cbf447
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (GH-21878)
(cherry picked from commit 52698c7ad9)

Co-authored-by: Yury Selivanov <yury@magic.io>
2020-08-14 05:44:00 -04:00
Miss Islington (bot) f3b6f3cd9a
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703) (GH-21788)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 82ca8fada1)

Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
2020-08-12 06:53:13 -04:00
Miss Islington (bot) a8ad127c22
bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21835)
(cherry picked from commit 76643c10ed)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-08-12 06:36:20 -04:00
Miss Islington (bot) ca75fec1ed
bpo-39603: Prevent header injection in http methods (GH-18485) (GH-21538)
reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e8fb)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
2020-07-19 05:27:35 -04:00
Miss Islington (bot) eb0d255ffe
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521) (GH-21524)
(cherry picked from commit 164b04c47e)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-07-18 05:00:57 -04:00
Steve Dower 4bfcffe16e
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) (#21499) 2020-07-15 18:24:56 -04:00
Miss Islington (bot) 79c6b602ef
bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21484)
Avoid infinite loop when reading specially crafted TAR files using the tarfile module
(CVE-2019-20907).
(cherry picked from commit 5a8d121a1f)

Co-authored-by: Rishi <rishi_devan@mail.com>
2020-07-15 08:35:08 -04:00
Miss Islington (bot) 620e276a8c
bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458) (GH-21461)
Automerge-Triggered-By: @tiran
(cherry picked from commit 4f309abf55)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-07-13 14:17:01 -04:00
Miss Islington (bot) c8c818b0d7
closes bpo-41235: Fix the error handling in SSLContext.load_dh_params() (GH-21389)
(cherry picked from commit aebc049557)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-07-07 23:55:36 -05:00
Steve Dower 110dd15366
[3.7] bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (#21298)
* bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded.

* Add CVE number
2020-07-06 13:24:59 -04:00
Tapas Kundu b98e7790c7
[3.7] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033) (GH-21231)
CVE-2020-14422
The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26e36)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>

Signed-off-by: Tapas Kundu <tkundu@vmware.com>
2020-06-30 15:20:21 -04:00
Ned Deily 4fdc175f9a
Post release updates 2020-06-28 07:19:53 -04:00
Ned Deily 4b47a5b6ba
3.7.8 2020-06-27 04:35:53 -04:00
Miss Islington (bot) cfbc759f91
BPO-41100: Support macOS 11 when building (GH-21113) (GH-21155)
(cherry picked from commit 8ea6353f60)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-06-25 11:15:52 -04:00
Christian Heimes d3798ed9f1
[3.7] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20949)
Signed-off-by: Christian Heimes <christian@python.org>

Automerge-Triggered-By: @tiran.
(cherry picked from commit bb6ec14479)

Co-authored-by: Christian Heimes <christian@python.org>
2020-06-25 08:11:13 -04:00
Ned Deily 934c1fa873
Update macOS installer reader for 3.7.8 2020-06-25 06:27:57 -04:00
Ned Deily e41eced0fc
Fix macOS installer build typos 2020-06-25 03:47:27 -04:00
Ned Deily febe38236c
Post release update 2020-06-17 23:49:37 -04:00
Ned Deily 5f3933d61d
3.7.8rc1 2020-06-17 04:48:12 -04:00
Ned Deily 0d70a98f44
bpo-40204: Pin Sphinx version to 2.3.1 in Doc/Makefile 2020-06-17 04:27:55 -04:00
Ned Deily 95b208f840
Update missed Python.app copyright. 2020-06-17 03:49:24 -04:00
Ned Deily 26e228a56e
Update macOS Python Launcher defaults to python3. 2020-06-17 03:33:05 -04:00
Ned Deily 966036af0e
bpo-39580: add check for CLI installation on macOS
Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
2020-06-17 03:18:55 -04:00
Ned Deily 9f4eec081b
Update the macOS installer build scripts
Change includes to fix building with Python 3.x and to
build correctly on newer macOS systems with SIP.
2020-06-17 00:55:54 -04:00
Ned Deily 62855d53d2
Synchronize macOS installer with 3.9 2020-06-16 21:57:09 -04:00
Miss Islington (bot) 678ffc4281
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)
Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
(cherry picked from commit e63cc2f646)

Co-authored-by: Ned Deily <nad@python.org>
2020-06-15 15:01:19 -07:00
Miss Islington (bot) b46beb25e4
bpo-40448: ensurepip: Do not use cache (GH-19812)
ensurepip optionally installs or upgrades 'pip' and 'setuptools' using
the version of those modules bundled with Python.  The internal PIP
installation routine by default temporarily uses its cache, if it
exists.  This is undesirable as Python builds and installations may be
independent of the user running the build, whilst PIP cache location
is dependent on the user's environment and outside of the build
environment.

At the same time, there's no value in using the cache while installing
bundled modules.

This change disables PIP caching when used in ensurepip.
(cherry picked from commit 4a3a682b12)

Co-authored-by: Krzysztof Konopko <kkonopko@users.noreply.github.com>
2020-06-15 10:44:34 -07:00
Miss Islington (bot) aa83935a56
[3.7] bpo-34226: fix cgi.parse_multipart without content_length (GH-8530) (GH-20892)
In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH
header, this fix remove this header as required and fix FieldStorage
read_lines_to_outerboundary, by not using limit when it's negative,
since by default it's -1 if not content-length and keeps substracting what
was read from the file object.

Also added a test case for this problem.
(cherry picked from commit d8cf3514dd)


Co-authored-by: roger <rogerduran@gmail.com>

Automerge-Triggered-By: @ned-deily
2020-06-15 08:33:32 -07:00
Miss Islington (bot) e1ca0c5301
[3.7] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20861)
(cherry picked from commit dea3223740)


Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Automerge-Triggered-By: @brettcannon
2020-06-13 13:56:10 -07:00
Steve Dower 617af99312
bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
2020-06-12 22:15:27 +01:00
Christian Heimes 0abb70ec93
bpo-40964: disable remote IMAP tests (GH-20836)
Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is
causing test suite to fail.

Signed-off-by: Christian Heimes <christian@python.org>
2020-06-12 15:10:43 -04:00
Miss Islington (bot) ebd44003c9
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19762)
require `_generate_next_value_` to be defined before members
(cherry picked from commit d9a43e20fa)
2020-06-11 14:48:47 -07:00
Miss Islington (bot) f881c86975
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20817)
unittest.TestCase.assertWarns no longer raises a RuntimeException
when accessing a module's ``__warningregistry__`` causes importation of a new
module, or when a new module is imported in another thread.
(cherry picked from commit 46398fba4d)

Co-authored-by: kernc <kerncece@gmail.com>
2020-06-11 14:34:42 -04:00
Antoine Pitrou 049039832d
[3.7] bpo-40895: Update weakref documentation to remove old warnings (GH-20687) (GH-20793)
The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration.

These notes present the user with a problem that has no easy solution.

I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress.

I asked for confirmation and @pitrou agreed that these notes could be removed:
c1baa601e2GH-commitcomment-39514438.
(cherry picked from commit 1642c0ef75)

Co-authored-by: Daniel Fortunov <asqui@users.noreply.github.com>

Automerge-Triggered-By: @pitrou
2020-06-10 13:37:21 -07:00
Miss Islington (bot) 4b378acb97
Add quotes to code to be a string 2020-06-09 05:39:01 -07:00
Stefan Krah 22faf6ad3b
[3.7] Revert bpo-39576: Prevent memory error for overly optimistic precisions (GH-20748)
This reverts commit c6f95543b4.
2020-06-09 01:55:47 +02:00