Commit Graph

80972 Commits

Author SHA1 Message Date
Ned Deily c421c66a58
bpo-36231: Support building on macOS without /usr/include (GH-13773) (GH-14256) 2019-06-20 01:59:54 -04:00
Benjamin Peterson 598c756459
[2.7] Fix name of '\0'. (GH-14225)
'\0' is the NUL byte not NULL..
(cherry picked from commit 7821b4c6d2)
2019-06-18 23:03:35 -07:00
Ned Deily a5b1b22207
bpo-34631: Updated OpenSSL to 1.0.2s in macOS installer. (GH-14198) 2019-06-18 06:48:53 -04:00
animalize 373dace8d7 [2.7] bpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14183) 2019-06-18 05:59:53 -04:00
Alex Gaynor eb8b55927b [2.7] Update link in colorsys docs to be https (GH-14062) (GH-14110) 2019-06-17 18:41:44 -07:00
Steve Dower d8e3a8af77
bpo-34631: Updated OpenSSL to 1.0.2s in Windows installer (GH-14161) 2019-06-17 09:33:11 -07:00
Terry Jan Reedy 722733e940
[2.7] Fix 2.7 test -R test_IDLE failure on Windows (GH-13958)
Cherry-picked from 66d47da.
2019-06-16 16:36:23 -04:00
Xtreak ee15aa2b85 [2.7] bpo-35647: Fix path check in cookiejar. (GH-11436) (GH-13427) 2019-06-15 19:29:29 +03:00
Xtreak 979daae300 [2.7] bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-13426)
This is a manual backport of ca7fe50635 since 2.7 has `http.cookiejar` in `cookielib`


https://bugs.python.org/issue35121
2019-06-15 08:29:43 -07:00
Victor Stinner 2b578479b9
[2.7] bpo-36742: Fix urlparse.urlsplit() error message for Unicode URL (GH-13937)
If urlparse.urlsplit() detects an invalid netloc according to NFKC
normalization, the error message type is now str rather than unicode,
and use repr() to format the URL, to prevent <exception str() failed>
when display the error message.
2019-06-11 12:45:35 +02:00
Dimitri John Ledkov 99b5c940d3 [2.7] bpo-34836: fix test_default_ecdh_curve, needs no tlsv1.3. (GH-9626)
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>

https://bugs.python.org/issue34836
2019-06-09 15:44:57 +10:00
Eric Wieser 48f190f79c [2.7] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (#13906) 2019-06-08 11:19:24 +02:00
Zackery Spytz 2bfc2dc214 [2.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13898)
(cherry picked from commit dc2476500d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-06-07 18:22:56 +02:00
Tal Einat 1b57ab5c64
[2.7] bpo-37177: make IDLE's search dialogs transient (GH-13869)
This avoids the search dialogs being hidden behind the editor window.

(cherry picked from commit 554450fb4e)
2019-06-07 09:53:05 +03:00
Anthony Sottile 20093b3adf Update outdated reference to Mercurial (GH-12857) 2019-06-04 20:19:36 -04:00
Miss Islington (bot) 49832e60c8
Doc: Python 3.9 in sidebar and version switcher. (GH-13824)
(cherry picked from commit 59e7bbcaa4)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-06-04 16:21:08 -07:00
Steve Dower f61599b050
bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) 2019-06-04 09:40:16 -07:00
Miss Islington (bot) 74bede0d50
Fix variable name copy/paste error in build-installer.py (GH-13038)
(cherry picked from commit d337169156)

Co-authored-by: cclauss <cclauss@me.com>
2019-06-02 20:39:38 -07:00
Miss Islington (bot) bfc1f60560 [2.7] bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)
* bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)

msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().
(cherry picked from commit c8d5bf6c3f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-05-31 15:39:39 -07:00
Hai Shi 103b8d9f91 [2.7] bpo-33071: remove outdated PyPI docs (GH-13087) (GH-13584)
Patch by Kojo Idrissa.
(cherry picked from commit 1b4abcf302)

Co-authored-by: Kojo Idrissa <kojoidrissa@users.noreply.github.com>


https://bugs.python.org/issue33071
2019-05-29 10:05:26 -07:00
Tony Flury 09ba83330b [2.7] bpo-33006 - Correct filter doc string to clarify 2nd argument can be iterable (GH-6015)
https://bugs.python.org/issue33006
2019-05-28 18:36:04 -07:00
Victor Stinner aaed2c332a
bpo-26423: Fix test_descr.test_wrap_lenfunc_bad_cast() on 32-bit Windows (GH-13629)
Skip the test if xrange(sys.maxsize) raises an OverflowError.
2019-05-28 18:15:30 +02:00
Victor Stinner 80dfe99016
bpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606) (GH-13625)
Fix possible overflow in wrap_lenfunc() when
sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows).

(cherry picked from commit 05f16416d9)
2019-05-28 17:23:07 +02:00
Victor Stinner d9d1045837
bpo-35907: Clarify the NEWS entry (GH-13557) 2019-05-24 23:28:56 +02:00
Michele Angrisano 25d8404c35 bpo-36713: Rename duplicated method in test_unicode. (#13525)
modified:   Lib/ctypes/test/test_unicode.py
 	modified:   Misc/ACKS
 	new file:   Misc/NEWS.d/next/Library/2019-05-23-15-57-36.bpo-36713.sjPhnf.rst
2019-05-23 16:42:50 +02:00
Victor Stinner 942c31dffb
bpo-35907: Complete test_urllib.test_local_file_open() (GH-13506)
Test also URLopener().open(), URLopener().retrieve(), and
DummyURLopener().retrieve().
2019-05-22 23:28:03 +02:00
SH b15bde8058 bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-11842)
CVE-2019-9948: Avoid file reading as disallowing the unnecessary URL scheme in urllib.urlopen().
2019-05-21 23:12:23 +02:00
Victor Stinner bb8071a4ca
bpo-30458: Disallow control chars in http URLs (GH-12755) (GH-13154) (GH-13315)
Disallow control chars in http URLs in urllib2.urlopen.  This
addresses a potential security problem for applications that do not
sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when
python is built without SSL to fix test failures.

Use httplib.InvalidURL instead of ValueError as the new error case's
exception. (GH-13044)

Backport Co-Authored-By: Miro Hrončok <miro@hroncok.cz>

(cherry picked from commit 7e200e0763)

Notes on backport to Python 2.7:

* test_urllib tests urllib.urlopen() which quotes the URL and so is
  not vulerable to HTTP Header Injection.
* Add tests to test_urllib2 on urllib2.urlopen().
* Reject non-ASCII characters: range 0x80-0xff.
2019-05-21 15:12:33 +02:00
Terry Jan Reedy c841a30879
[2.7] Update idlelib NEWS.txt for 2.7 (GH-13436) 2019-05-19 22:35:21 -04:00
Miss Islington (bot) eda691dd9d
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
(cherry picked from commit 53d378c812)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-05-19 17:49:50 -07:00
Benjamin Peterson 951af2d7f1
closes bpo-36755: Suppress noisy error output in test HTTPS server by default. (GH-13370)
TLS 1.3 has a more efficient handshake protocol. The client can reject the server's credentials and close the connection before the server has even finished writing out all of its initial data. Depending on whether the server finishes writing the rest of its handshake before the it sees the connection is reset, the server will read an empty line or see a ECONNRESET OSError. Nothing is really wrong here with the server or client, so just suppress the error output in the OSError case to fix the test.

This fix isn't required in Python 3 because clients that reject the server's certificate will shut down the TLS layer before closing the TCP connection.
2019-05-17 11:29:38 -07:00
Victor Stinner f24a9f3bf4
bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850) (GH-13319)
(cherry picked from commit f0be4bbb9b)
2019-05-15 16:31:10 +02:00
Terry Jan Reedy 353f8d2282
[2.7] bpo-36807: When saving a file in IDLE, call flush and fsync (GH-13102) (GH-13293) 2019-05-13 18:29:15 -04:00
Gregory P. Smith 7346a16ed5
[2.7] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS (GH-13124) (GH-13253)
Modern Linux distros such as Debian Buster have default OpenSSL system
configurations that reject connections to servers with weak certificates
by default. This causes our test suite run with external networking
resources enabled to skip these tests when they encounter such a
failure.

Fixing the network servers is a separate issue.
(cherry picked from commit 2cc0223)

Changes to test_ssl.py required as 2.7 has legacy protocol tests.

The test_httplib.py change is omitted from this backport as
self-signed.pythontest.net's certificate was updated and the
test_nntplib.py change is not applicable on 2.7.

Authored-by: Gregory P. Smith greg@krypto.org
2019-05-13 13:16:34 -07:00
Toshio Kuratomi 24ff9a44ac [2.7] closes bpo-14353: Fix detection of bind_textdomain_codeset in libintl. (GH-13265)
In Python-2.7, we were only searching for bind_textdomain_codeset in
libc.  We should have also checked for it in libintl.  This change from
Mel Flynn https://bugs.python.org/file24918/python27-configure.in.patch
fixes that.
2019-05-12 13:47:18 -07:00
Gregory P. Smith 7b5dca8345
[2.7] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13199)
* [2.7] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192)

We updated the server, our testsuite must match.

https://bugs.python.org/issue36816

✈️ CLE -> DEN ✈️ #pycon2019 #beyonce
(cherry picked from commit 6bd81734de)

The 2.7 tree also needed a certificate in the capath directory updated.
The filename for that was determined by `openssl x509 -in $cert.pem -subject_hash`.

Authored-by: Gregory P. Smith <greg@krypto.org>
2019-05-08 18:53:15 -06:00
Julien Palard 8ab24b2ebc [2.7] bpo-24712: Doc: Make sidebar sticky using browser support. (GH-13179)
Patch by Mike Taylor.
2019-05-08 09:32:07 -04:00
Zackery Spytz 7c2c01f02a [2.7] bpo-14546: Fix the argument handling in Tools/scripts/lll.py (GH-13026) (GH-13063)
(cherry picked from commit c4e78b116f)
2019-05-02 15:29:21 -04:00
Miss Islington (bot) 74852b9794
Change bisect to bisect_cmd in docstring (GH-13040)
(cherry picked from commit 11e4a941e9)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
2019-05-01 20:01:41 -07:00
Steve Dower 98a4dcefbb
bpo-36742: Fixes handling of pre-normalization characters in urlsplit() (GH-13017) 2019-05-01 15:00:27 +00:00
Miss Islington (bot) 3e5c4a7c80
closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. (GH-13008)
(cherry picked from commit ee0309f3d8)

Co-authored-by: Utkarsh Gupta <guptautkarsh2102@gmail.com>
2019-04-29 19:25:35 -07:00
Victor Stinner be6cbfb767
bpo-35952: Sync test.pythoninfo from master (GH-13010) 2019-04-29 15:20:38 +02:00
Victor Stinner f4edd39017
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949)
bpo-28552, bpo-7774: Fix distutils.sysconfig if sys.executable is
None or an empty string: use os.getcwd() to initialize project_base.

Fix also the distutils build command: don't use sys.executable if
it's evaluated as false (None or empty string).
2019-04-25 13:16:02 +02:00
Zackery Spytz 84efbaecaf [2.7] bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) (GH-12916)
(cherry picked from commit 56ed86490c)



https://bugs.python.org/issue9194
2019-04-22 16:35:55 -07:00
Victor Stinner 44a2c4aaf2
bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12815)
"make tags" and "make TAGS" now also parse Modules/_io/*.c
and Modules/_io/*.h.

(cherry picked from commit 21a74a9d77)
2019-04-13 02:50:24 +02:00
Joshua Root 0fd5a7338c bpo-34652: Use AC_CHECK_FUNCS for lchmod. (GH-12799)
A fix for 69e9691015, which resulted in lchmod being disabled on all platforms, not just Linux.

(cherry picked from commit ed709d5699)
2019-04-12 08:51:35 -07:00
Victor Stinner 22de4ce498
bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751)
Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().
2019-04-09 19:54:10 +02:00
Victor Stinner 9c14061a2c
bpo-36560: Fix reference leak hunting in regrtest (GH-12744) (GH-12745)
Fix reference leak hunting in regrtest: compute also deltas (of
reference count and file descriptor count) during warmup, to ensure
that everything is initialized before starting to hunt reference
leaks.

Other changes:

* Replace gc.collect() with support.gc_collect() in clear_caches()
* dash_R() is now more quiet with --quiet option (don't display
  progress).
* Precompute the full range for "for it in range(repcount):" to
  ensure that the iteration doesn't allocate anything new.
* dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94eeb)
2019-04-09 18:01:17 +02:00
Inada Naoki 4e8e8aabc6
bpo-30134: fix BytesWarning doc, docstring and message (GH-12739) 2019-04-09 21:49:49 +09:00
Inada Naoki 87ed1beb3e
bpo-30134: add BytesWarning in warnings.rst (GH-12738) 2019-04-09 16:00:51 +09:00