]> granicus.if.org Git - python/log
python
6 years agoRevert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (GH-5912) (GH...
Miss Islington (bot) [Tue, 27 Feb 2018 23:30:30 +0000 (15:30 -0800)]
Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (GH-5912) (GH-5931)

* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.
(cherry picked from commit be50a7b627d0aa37e08fa8e2d5568891f19903ce)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoUpdate macOS installer resources
Ned Deily [Tue, 27 Feb 2018 22:39:50 +0000 (17:39 -0500)]
Update macOS installer resources

6 years agobpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8
Ned Deily [Tue, 27 Feb 2018 22:36:12 +0000 (17:36 -0500)]
bpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8

6 years agobpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929)
Miss Islington (bot) [Tue, 27 Feb 2018 19:58:28 +0000 (11:58 -0800)]
bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929)

* Add What's New entry for addition of datetime.timezone to the C API

Closes bpo-10381

* Add what's new entry for date and datetime optimizations

Closes bpo-32403
(cherry picked from commit 5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe)

Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
6 years agobpo-31453: Add setter for min/max protocol version (GH-5259)
Miss Islington (bot) [Tue, 27 Feb 2018 11:41:04 +0000 (03:41 -0800)]
bpo-31453: Add setter for min/max protocol version (GH-5259)

OpenSSL 1.1 has introduced a new API to set the minimum and maximum
supported protocol version. The API is easier to use than the old
OP_NO_TLS1 option flags, too.

Since OpenSSL has no call to set minimum version to highest supported,
the implementation emulate maximum_version = MINIMUM_SUPPORTED and
minimum_version = MAXIMUM_SUPPORTED by figuring out the minumum and
maximum supported version at compile time.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 698dde16f60729d9e3f53c23a4ddb8e5ffe818bf)

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.7] bpo-32951: Disable SSLSocket/SSLObject constructor (GH-5864) (#5925)
Christian Heimes [Tue, 27 Feb 2018 10:17:32 +0000 (11:17 +0100)]
[3.7] bpo-32951: Disable SSLSocket/SSLObject constructor (GH-5864) (#5925)

Direct instantiation of SSLSocket and SSLObject objects is now prohibited.
The constructors were never documented, tested, or designed as public
constructors. The SSLSocket constructor had limitations. For example it was
not possible to enabled hostname verification except was
ssl_version=PROTOCOL_TLS_CLIENT with cert_reqs=CERT_REQUIRED.

SSLContext.wrap_socket() and SSLContext.wrap_bio are the recommended API
to construct SSLSocket and SSLObject instances. ssl.wrap_socket() is
also deprecated.

The only test case for direct instantiation was added a couple of days
ago for IDNA testing.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 9d50ab563df6307cabbcc9883cb8c52c614b0f22)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-28124: deprecate ssl.wrap_socket() (GH-5888)
Miss Islington (bot) [Tue, 27 Feb 2018 09:45:31 +0000 (01:45 -0800)]
bpo-28124: deprecate ssl.wrap_socket() (GH-5888)

The ssl module function ssl.wrap_socket() has been de-emphasized
and deprecated in favor of the more secure and efficient
SSLContext.wrap_socket() method.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 90f05a527c7d439f1d0cba80f2eb32e60ee20fc3)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (GH-5663)
Miss Islington (bot) [Tue, 27 Feb 2018 08:17:49 +0000 (00:17 -0800)]
bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (GH-5663)

* bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes

Misc fixes and workarounds for compatibility with OpenSSL 1.1.1-pre1 and
TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by
default. Some test cases only apply to TLS 1.2. Other tests currently
fail because the threaded or async test servers stop after failure.

I'm going to address these issues when OpenSSL 1.1.1 reaches beta.

OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS
1.3. The feature is enabled by default for maximum compatibility with
broken middle boxes. Users should be able to disable the hack and CPython's test suite needs
it to verify default options.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 05d9fe32a1245b9a798e49e0c1eb91f110935b69)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and...
Miss Islington (bot) [Tue, 27 Feb 2018 01:59:55 +0000 (17:59 -0800)]
bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and vice-versa, (GH-5919) (GH-5920)

This restriction will be relaxed at a future date.
(cherry picked from commit 2fa6b9eae07e2385e2acbf2e40093a21fb3a10c4)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)
Miss Islington (bot) [Tue, 27 Feb 2018 00:50:09 +0000 (16:50 -0800)]
bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)

(cherry picked from commit 72d9b2be36f091793ae7ffc5ad751f040c6e6ad3)

Co-authored-by: Joffrey F <f.joffrey@gmail.com>
6 years agobpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
Miss Islington (bot) [Mon, 26 Feb 2018 23:23:26 +0000 (15:23 -0800)]
bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)

(cherry picked from commit eee72d4778a5513038edd5236cdd87ccce2bc60a)

Co-authored-by: Tobotimus <Tobotimus@users.noreply.github.com>
6 years agobpo-32394: Remove some TCP options on old version Windows. (GH-5523)
Miss Islington (bot) [Mon, 26 Feb 2018 18:36:17 +0000 (10:36 -0800)]
bpo-32394: Remove some TCP options on old version Windows. (GH-5523)

(cherry picked from commit 19e7d48ce89422091f9af93038b9fee075d46e9e)

Co-authored-by: animalize <animalize@users.noreply.github.com>
6 years agoRevert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
Miss Islington (bot) [Mon, 26 Feb 2018 16:22:24 +0000 (08:22 -0800)]
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)

(cherry picked from commit 3f2e6f15d64d81633b1fc0b308afc0d6e9026b61)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832)
Miss Islington (bot) [Mon, 26 Feb 2018 14:25:40 +0000 (06:25 -0800)]
bpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832)

(cherry picked from commit 6f600ff1734ca2fdcdd37a809adf8130f0d8cc4e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_has...
Miss Islington (bot) [Mon, 26 Feb 2018 09:43:35 +0000 (01:43 -0800)]
bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (GH-5891) (GH-5902)

unsafe_hash=False is now the default. It is the same behavior as the old hash=None parameter. unsafe_hash=True will try to add __hash__. If it already exists, TypeError is raised.
(cherry picked from commit dbf9cff48a4ad0fd58e1c623ce1f36c3dd3d5f38)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agoFix 'deecorator' typo in test/test_dataclasses (GH-5899)
Miss Islington (bot) [Mon, 26 Feb 2018 03:09:05 +0000 (19:09 -0800)]
Fix 'deecorator' typo in test/test_dataclasses (GH-5899)

(cherry picked from commit 973cae07d6ce7f5a93bd9cd3bcb724a96cfe14e9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length...
Miss Islington (bot) [Sun, 25 Feb 2018 21:19:55 +0000 (13:19 -0800)]
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)

Dropped the part that says: "For objects that do not provide sequence protocol".
(cherry picked from commit 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
Miss Islington (bot) [Sun, 25 Feb 2018 19:35:52 +0000 (11:35 -0800)]
bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

(cherry picked from commit fbee88244e8921afdb29fde51a9a010a8ae18277)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
6 years agobpo-25059: Clarify the print separator usage in tutorial (GH-5879)
Miss Islington (bot) [Sun, 25 Feb 2018 19:13:33 +0000 (11:13 -0800)]
bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

By default `print` adds spaces between its arguments.
(cherry picked from commit 84c4b0cc67ceb4b70842b78c718b6e8214874d6a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32622: Native sendfile on windows (GH-5565)
Miss Islington (bot) [Sun, 25 Feb 2018 17:10:58 +0000 (09:10 -0800)]
bpo-32622: Native sendfile on windows (GH-5565)

* Support sendfile on Windows Proactor event loop naively.
(cherry picked from commit a19fb3c6aaa7632410d1d9dcb395d7101d124da4)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
6 years agoExhaustively test dataclass hashing when no hash= value is provided. This is in antic...
Miss Islington (bot) [Sun, 25 Feb 2018 16:56:30 +0000 (08:56 -0800)]
Exhaustively test dataclass hashing when no hash= value is provided. This is in anticipation of changing how non-default hashing is handled. (GH-5834) (GH-5889)

(cherry picked from commit 718070db26b35da4aedc03088c58558a833ccf6e)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agoDelete a broken threading.local example (GH-5870)
Miss Islington (bot) [Sun, 25 Feb 2018 15:23:25 +0000 (07:23 -0800)]
Delete a broken threading.local example (GH-5870)

This code never did anything correct or useful. The class attribute will never be affected, and the condition will never be true.
(cherry picked from commit 5fb632e83136399bad9427ee23ec8b771695290a)

Co-authored-by: Aaron Gallagher <habnabit@users.noreply.github.com>
6 years ago[3.7] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5880)
Miss Islington (bot) [Sun, 25 Feb 2018 12:18:43 +0000 (04:18 -0800)]
[3.7] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5880)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 29eab55309b9f78b79074d26db16a44e7841c639)

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5874)
Miss Islington (bot) [Sun, 25 Feb 2018 12:07:24 +0000 (04:07 -0800)]
[3.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5874)

The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 5bb9692575f10f4a7c7f1c2c0c70956baf6d5c23)

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.7] bpo-31809: test secp ECDH curves (GH-4036) (#5872)
Miss Islington (bot) [Sun, 25 Feb 2018 09:56:11 +0000 (01:56 -0800)]
[3.7] bpo-31809: test secp ECDH curves (GH-4036) (#5872)

Add tests to verify connection with secp384r1 ECDH curves.
(cherry picked from commit b7b9225831a729bff84eb7c43bad138416b994fe)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-17232: Clarify docs for -O and -OO command line options (GH-5839)
Miss Islington (bot) [Sun, 25 Feb 2018 03:24:08 +0000 (19:24 -0800)]
bpo-17232: Clarify docs for -O and -OO command line options (GH-5839)

The 'optimization' is for space in the executable file, not for run time.
(cherry picked from commit 186b606d8a2ea4fd51b7286813302c8e8c7006cc)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.7] bpo-30622: Improve NPN support detection (GH-5859) (#5860)
Miss Islington (bot) [Sat, 24 Feb 2018 22:04:27 +0000 (14:04 -0800)]
[3.7] bpo-30622: Improve NPN support detection (GH-5859) (#5860)

The ssl module now detects missing NPN support in LibreSSL.

Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org>
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6cdb7954b0a578d899e4b78b868ea59eef08480a)

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.7] bpo-24334: Cleanup SSLSocket (GH-5252) (#5857)
Miss Islington (bot) [Sat, 24 Feb 2018 20:51:56 +0000 (12:51 -0800)]
[3.7] bpo-24334: Cleanup SSLSocket (GH-5252) (#5857)

* The SSLSocket is no longer implemented on top of SSLObject to
  avoid an extra level of indirection.
* Owner and session are now handled in the internal constructor.
* _ssl._SSLSocket now uses the same method names as SSLSocket and
  SSLObject.
* Channel binding type check is now handled in C code. Channel binding
  is always available.

The patch also changes the signature of SSLObject.__init__(). In my
opinion it's fine. A SSLObject is not a user-constructable object.
SSLContext.wrap_bio() is the only valid factory.
(cherry picked from commit 141c5e8c2437a9fed95a04c81e400ef725592a17)

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.7] bpo-32931: fix macOS 10.9+ installer c++ compiler name (GH-5856)
Miss Islington (bot) [Sat, 24 Feb 2018 19:59:25 +0000 (11:59 -0800)]
[3.7] bpo-32931: fix macOS 10.9+ installer c++ compiler name (GH-5856)

(cherry picked from commit acd7163c0a0674b2fb6cc0178d52cf90c953fbae)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
Miss Islington (bot) [Sat, 24 Feb 2018 17:39:18 +0000 (09:39 -0800)]
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

(cherry picked from commit 42c35d9c0c8175332f50fbe034a001fe52f057b9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.7] bpo-32819: Simplify and improve ssl.match_hostname (GH-5620) (#5847)
Miss Islington (bot) [Sat, 24 Feb 2018 14:06:46 +0000 (06:06 -0800)]
[3.7] bpo-32819: Simplify and improve ssl.match_hostname (GH-5620) (#5847)

ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit aef1283ba428e33397d87cee3c54a5110861552d)

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128) (GH-5843)
Miss Islington (bot) [Sat, 24 Feb 2018 03:18:28 +0000 (19:18 -0800)]
[bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128) (GH-5843)

Previously, the ssl module stored international domain names (IDNs)
as U-labels. This is problematic for a number of reasons -- for
example, it made it impossible for users to use a different version
of IDNA than the one built into Python.

After this change, we always convert to A-labels as soon as possible,
and use them for all internal processing. In particular, server_hostname
attribute is now an A-label, and on the server side there's a new
sni_callback that receives the SNI servername as an A-label rather than
a U-label.
(cherry picked from commit 11a1493bc4198f1def5e572049485779cf54dc57)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)
Miss Islington (bot) [Sat, 24 Feb 2018 02:59:53 +0000 (18:59 -0800)]
bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)

Adjust tests and user modules to match.
(cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32838: Fix Python versions in the table of magic numbers. (GH-5658)
Miss Islington (bot) [Fri, 23 Feb 2018 19:01:54 +0000 (11:01 -0800)]
bpo-32838: Fix Python versions in the table of magic numbers. (GH-5658)

(cherry picked from commit 4af8fd561433826ac897c55e41a087a5c5dbacf3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)
Miss Islington (bot) [Fri, 23 Feb 2018 18:14:23 +0000 (10:14 -0800)]
bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)

`whilst` and `while` are both english words, `whilst` is not as commonly used.
This can be confusing to readers whose primary language is not english.
(cherry picked from commit 98f42aac23f3863973cb6e9964c5212cfd3a1d98)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
6 years agobpo-32924: Fix the Show Source url in the docs. (GH-5835)
Mariatta [Fri, 23 Feb 2018 18:02:30 +0000 (10:02 -0800)]
bpo-32924: Fix the Show Source url in the docs. (GH-5835)

The Show Source link in Python 3.7 docs is pointing to GitHub's master branch.
It should point to the 3.7 branch.

6 years agobpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)
Miss Islington (bot) [Fri, 23 Feb 2018 16:44:27 +0000 (08:44 -0800)]
bpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)

(cherry picked from commit efa6c762268d68985f3012234f62ea9e5ced8b7c)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)
Miss Islington (bot) [Fri, 23 Feb 2018 12:08:45 +0000 (04:08 -0800)]
bpo-32087: Doc: Make "deprecated-removed"  directive translatable (GH-4473)

(cherry picked from commit 0febc053736112d7bb9081742b3ac0ece7b973e7)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
6 years agobpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)
Miss Islington (bot) [Fri, 23 Feb 2018 05:39:02 +0000 (21:39 -0800)]
bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)

Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from.
If a forked child exits the context manager it won't do the cleanup.
(cherry picked from commit 33dddac00ba8d9b72cf21b8698504077eb3c23ad)

Co-authored-by: Anselm Kruis <a.kruis@science-computing.de>
6 years agoTest that new_timezone can return the UTC singleton (gh-5318) (#5819)
Miss Islington (bot) [Thu, 22 Feb 2018 21:18:54 +0000 (13:18 -0800)]
Test that new_timezone can return the UTC singleton (gh-5318) (#5819)

(cherry picked from commit a049f5790e38fe1b1ba1d4c10ed5ab35150806fa)

Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
6 years agobpo-32457: Improves handling of denormalized executable path when launching Python...
Miss Islington (bot) [Thu, 22 Feb 2018 19:15:16 +0000 (11:15 -0800)]
bpo-32457: Improves handling of denormalized executable path when launching Python (GH-5756)

(cherry picked from commit 48e8c82fc63d2ddcddce8aa637a892839b551619)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage now corre...
Miss Islington (bot) [Thu, 22 Feb 2018 19:02:12 +0000 (11:02 -0800)]
bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage now correctly convert from bytes. (GH-5761)

(cherry picked from commit 23ad6d0d1a7a6145a01494f4f3913a63d1f0250c)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-32905: IDLE - remove unused code in pyparse module (GH-5807)
Miss Islington (bot) [Thu, 22 Feb 2018 06:41:41 +0000 (22:41 -0800)]
bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)

dump is similar to print but less flexible.  lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed.  get_last_open_bracket_pos is never called.
(cherry picked from commit 451d1edaf4d27c4e632d81246d308e8dd6ea945f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agocloses bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
Miss Islington (bot) [Thu, 22 Feb 2018 05:44:08 +0000 (21:44 -0800)]
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)

(cherry picked from commit 745dc65b17b3936e3f9f4099f735f174d30c4e0c)

Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com>
6 years agobpo-32874: IDLE: add tests for pyparse (GH-5755)
Miss Islington (bot) [Thu, 22 Feb 2018 04:09:39 +0000 (20:09 -0800)]
bpo-32874: IDLE: add tests for pyparse (GH-5755)

There are no code changes other than comments and docstrings.
(cherry picked from commit c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32889: update valgrind suppressions (GH-5779)
Miss Islington (bot) [Wed, 21 Feb 2018 06:27:38 +0000 (22:27 -0800)]
bpo-32889: update valgrind suppressions (GH-5779)

Py_ADDRESS_IN_RANGE was renamed address_in_range in 3.6
(commit 3924f93794fd740c547b44884f73303196475cd5).
(cherry picked from commit ba518804bf4c1ea01df5e622b333d3116cbaa3bd)

Co-authored-by: Paul Price <price@astro.princeton.edu>
6 years agobpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
Miss Islington (bot) [Wed, 21 Feb 2018 06:02:18 +0000 (22:02 -0800)]
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)

It's bad form to pin to an old version of TLS. ssl.SSLContext has the right
protocol default, so let's not pass anyway.
(cherry picked from commit e9edee0b65650c4f9db90cefc2e9a8125bad762c)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)
Miss Islington (bot) [Wed, 21 Feb 2018 05:24:22 +0000 (21:24 -0800)]
bpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)

(cherry picked from commit 52c6b89796a7ec391db20281e05b256f57e97b35)

Co-authored-by: Harshul jain <harshulrobo@gmail.com>
6 years agobpo-32540: Update venv documentation (GH-5736)
Miss Islington (bot) [Wed, 21 Feb 2018 04:25:37 +0000 (20:25 -0800)]
bpo-32540: Update venv documentation (GH-5736)

If the directory already exists, it will be re-used.

(cherry picked from commit e8eb972514cad6086b752754c1d34d703c04dd82)

Co-authored-by: TROUVERIE Joachim <joachim.trouverie@linoame.fr>
6 years agobpo-32604: Swap threads only if the interpreter is different. (gh-5783)
Miss Islington (bot) [Wed, 21 Feb 2018 00:09:41 +0000 (16:09 -0800)]
bpo-32604: Swap threads only if the interpreter is different. (gh-5783)

The CPython runtime assumes that there is a one-to-one relationship (for a given interpreter) between PyThreadState and OS threads. Sending and receiving on a channel in the same interpreter was causing crashes because of this (specifically due to a check in PyThreadState_Swap()). The solution is to not switch threads if the interpreter is the same.
(cherry picked from commit f53d9f2778a87bdd48eb9030f782a4ebf9e7622f)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
6 years agobpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is...
Miss Islington (bot) [Tue, 20 Feb 2018 22:06:58 +0000 (14:06 -0800)]
bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found (GH-5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.
(cherry picked from commit 80d20b918bd8a882043c493a7f958333ecb41727)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agocloses bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
Miss Islington (bot) [Tue, 20 Feb 2018 07:46:47 +0000 (23:46 -0800)]
closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

os.dup2() tests for dup3() system call availability at runtime,
but doesn't remember the result across calls, repeating
the test on each call with inheritable=False.

Since the caller of os.dup2() is expected to hold the GIL,
fix this by making the variable holding the test result static.
(cherry picked from commit b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
6 years agobpo-32409: Ensures activate.bat can handle Unicode contents (GH-5765)
Miss Islington (bot) [Tue, 20 Feb 2018 01:45:02 +0000 (17:45 -0800)]
bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5765)

(cherry picked from commit 6240917b773b52f8883387b9e3a5f327a4372068)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)
Miss Islington (bot) [Mon, 19 Feb 2018 21:00:22 +0000 (13:00 -0800)]
bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

(cherry picked from commit 5537646bfacec463b450871dde31cb06c44a0556)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
6 years agobpo-32682: Improve libz version parsing in test_zilb (GH-5347)
Miss Islington (bot) [Mon, 19 Feb 2018 04:09:59 +0000 (20:09 -0800)]
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)

(cherry picked from commit 4c7108a77144493d0aa6fc0105b67d3797e143f5)

Co-authored-by: pmp-p <pmp-p@users.noreply.github.com>
6 years agoImprove error message for "setup.py upload" without dist files (GH-21060)
Miss Islington (bot) [Mon, 19 Feb 2018 03:57:17 +0000 (19:57 -0800)]
Improve error message for "setup.py upload" without dist files (GH-21060)

(cherry picked from commit 08a6926b2584040fe3c3f06263b0b5f1fbbdc24c)

Co-authored-by: Éric Araujo <merwok@netwok.org>
6 years agobpo-31972: Improve docstrings for pathlib classes (GH-5310)
Miss Islington (bot) [Mon, 19 Feb 2018 00:48:07 +0000 (16:48 -0800)]
bpo-31972: Improve docstrings for pathlib classes (GH-5310)

(cherry picked from commit dfa015cf77a148d229ddc0a5b063562c9f9664f2)

Co-authored-by: chason <chason@gmail.com>
6 years agobpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
Miss Islington (bot) [Sun, 18 Feb 2018 22:35:40 +0000 (14:35 -0800)]
bpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)

(cherry picked from commit 3fb813d2c67fe28cc98ae51e53a6890294b6e423)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (GH-5739)
Miss Islington (bot) [Sun, 18 Feb 2018 18:40:07 +0000 (10:40 -0800)]
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (GH-5739)

This function expects the destination buffer size to be given
in wide characters, not bytes.
(cherry picked from commit b3b4a9d3001f1fc7df8efcccdce081de54fa5eab)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
6 years agobpo-25988: add NEWS entry for 3.7.0b2 (#5743)
Ned Deily [Sun, 18 Feb 2018 18:18:44 +0000 (13:18 -0500)]
bpo-25988: add NEWS entry for 3.7.0b2 (#5743)

6 years agobpo-25988: Emit a warning when use or import ABCs from 'collections'. (GH-5734)
Ivan Levkivskyi [Sun, 18 Feb 2018 17:40:59 +0000 (17:40 +0000)]
bpo-25988: Emit a warning when use or import ABCs from 'collections'. (GH-5734)

6 years agobpo-31333: Re-implement ABCMeta in C (GH-5733)
Ivan Levkivskyi [Sun, 18 Feb 2018 17:39:43 +0000 (17:39 +0000)]
bpo-31333: Re-implement ABCMeta in C (GH-5733)

This adds C versions of methods used by ABCMeta that
improve performance of various ABC operations.

6 years agoClean up Travis config (GH-5727)
Miss Islington (bot) [Sun, 18 Feb 2018 16:39:51 +0000 (08:39 -0800)]
Clean up Travis config (GH-5727)

(cherry picked from commit 7eb3f8226ea7b79dae4e4e8b05730cfe0d9af7c1)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
6 years ago[3.7] Improves the ability to build in CI (GH-5729)
Miss Islington (bot) [Sun, 18 Feb 2018 03:31:37 +0000 (19:31 -0800)]
[3.7] Improves the ability to build in CI (GH-5729)

6 years agobpo-30638: Add clinic to `make regen-all` (GH-5671)
Miss Islington (bot) [Sun, 18 Feb 2018 00:23:59 +0000 (16:23 -0800)]
bpo-30638: Add clinic to `make regen-all` (GH-5671)

Also, use PYTHON_FOR_REGEN for clinic and blake2s_impl.c rather than PYTHON_FOR_BUILD, and update .travis.yml to make use of the change.
(cherry picked from commit d6ff8a7037903497eff95fa32bdac2b6adf71505)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
6 years agoFix a typo in asyncio docs (GH-5721)
Miss Islington (bot) [Sat, 17 Feb 2018 18:02:46 +0000 (10:02 -0800)]
Fix a typo in asyncio docs (GH-5721)

(cherry picked from commit 17ab8f0e8e2b2f66d11fbb95aa9936544a5e1a9a)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
6 years agobpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)
Miss Islington (bot) [Sat, 17 Feb 2018 06:53:24 +0000 (22:53 -0800)]
bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)

(cherry picked from commit 9f4223261fd129ad7b9a09b2b0d625d1bb90b22b)

Co-authored-by: Kyle Altendorf <sda@fstab.net>
6 years agoDOC: fix documentation for copyright and credits (GH-5706)
Miss Islington (bot) [Sat, 17 Feb 2018 04:09:20 +0000 (20:09 -0800)]
DOC: fix documentation for copyright and credits (GH-5706)

Adapt documentation for `copyright` and `credits` to reality.  Previously, the documentation implied that all each of `copyright`,
`credits`, and `license`, would print a message to call the object in order to see the full text.  In reality, only `license` exhibits this
behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called.
(cherry picked from commit 243d6d71265be1996a8326002deae429106a5fba)

Co-authored-by: Gerrit Holl <gerrit.holl@gmail.com>
6 years agobpo-32860: Fix a missing asterisk in the documentation for glob.iglob() (GH-5712)
Miss Islington (bot) [Sat, 17 Feb 2018 03:51:09 +0000 (19:51 -0800)]
bpo-32860: Fix a missing asterisk in the documentation for glob.iglob() (GH-5712)

(cherry picked from commit 6887d86e9a04b9c5718b08e5d9e1ca3cc1f53721)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5710)
Miss Islington (bot) [Sat, 17 Feb 2018 02:15:24 +0000 (18:15 -0800)]
bpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5710)

(cherry picked from commit 4c6955e2b0ccf88c705f8d1fac685a8e65f9699e)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
6 years agoCorrect the code example in Python 3.7's What's New (GH-5696)
Miss Islington (bot) [Fri, 16 Feb 2018 18:28:18 +0000 (10:28 -0800)]
Correct the code example in Python 3.7's What's New (GH-5696)

There was an extra dash in the example for re.sub().
(cherry picked from commit b65cb163d6e125606070c54dc757f421fe419b59)

Co-authored-by: xpvpc <32843902+xpvpc@users.noreply.github.com>
6 years agobpo-32436: Add docs for contextvars (GH-5685)
Miss Islington (bot) [Fri, 16 Feb 2018 17:03:18 +0000 (09:03 -0800)]
bpo-32436: Add docs for contextvars (GH-5685)

(cherry picked from commit bd093355a6aaf2f4ca3ed153e195da57870a55eb)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agoUpdate and sync importlib.resources documentation (GH-5694) (#5697)
Miss Islington (bot) [Fri, 16 Feb 2018 16:07:53 +0000 (08:07 -0800)]
Update and sync importlib.resources documentation (GH-5694) (#5697)

(cherry picked from commit 997b8c140e768c849fa99d172245a7688af20a89)

Co-authored-by: Barry Warsaw <barry@python.org>
7 years agoUpdate comment in posixmodule.c (GH-5681)
Miss Islington (bot) [Wed, 14 Feb 2018 21:06:46 +0000 (13:06 -0800)]
Update comment in posixmodule.c (GH-5681)

A closing parentheses was missing.

Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com>
(cherry picked from commit 7745ec4e356ac1f4eaf43b155f4482c20a907d48)

Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
7 years agobpo-32841: Fix cancellation in awaiting asyncio.Condition (GH-5665)
Miss Islington (bot) [Wed, 14 Feb 2018 09:47:30 +0000 (01:47 -0800)]
bpo-32841: Fix cancellation in awaiting asyncio.Condition (GH-5665)

(cherry picked from commit 5746510b7aef423fa4afc92b2abb919307b1dbb9)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
7 years agoFix installation instructions for *nix (GH-5605)
Miss Islington (bot) [Wed, 14 Feb 2018 03:53:31 +0000 (19:53 -0800)]
Fix installation instructions for *nix (GH-5605)

Remove pkg_add -r python from FreeBSD installation section.
Moved to OpenBSD.
(cherry picked from commit 3384d38d51a2c3450e742175db5d6d638fa5d2eb)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
7 years agoremove mercurial dot files (GH-5558)
Miss Islington (bot) [Wed, 14 Feb 2018 02:49:56 +0000 (18:49 -0800)]
remove mercurial dot files (GH-5558)

(cherry picked from commit 2b86f4cb2cd339f545804a9abb8c4d4cc28d9488)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-27846: Delete incorrect note in base64 docs (GH-5666)
Miss Islington (bot) [Wed, 14 Feb 2018 00:48:00 +0000 (16:48 -0800)]
bpo-27846: Delete incorrect note in base64 docs (GH-5666)

This note incorrectly stated that "Base64 has an expansion factor of 6
to 4" (it is actually 4 to 3). It was decided to remove the note.

(cherry picked from commit 88c38a4049ded0e1f197fec3e76be7c0c0e83d7a)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
Miss Islington (bot) [Tue, 13 Feb 2018 15:07:34 +0000 (07:07 -0800)]
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)

(cherry picked from commit f0bc645dfede8118c84844bad319cd952c4d1905)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)
Miss Islington (bot) [Tue, 13 Feb 2018 11:32:18 +0000 (03:32 -0800)]
bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)

(cherry picked from commit d019bc8319ea35e93bf4baa38098ff1b57cd3ee5)

Co-authored-by: Oren Milman <orenmn@gmail.com>
7 years agobpo-32370: Use the correct encoding for ipconfig output in the uuid module. (GH-5608)
Miss Islington (bot) [Tue, 13 Feb 2018 08:58:28 +0000 (00:58 -0800)]
bpo-32370: Use the correct encoding for ipconfig output in the uuid module. (GH-5608)

(cherry picked from commit da6c3da6c33c6bf794f741e348b9c6d86cc43ec5)

Co-authored-by: Segev Finer <segev208@gmail.com>
7 years agobpo-30579: Docs for dynamic traceback creation (GH-5653)
Miss Islington (bot) [Tue, 13 Feb 2018 08:53:37 +0000 (00:53 -0800)]
bpo-30579: Docs for dynamic traceback creation (GH-5653)

(cherry picked from commit aec7532ed3ccbd29d3429a3f375e25f956c44003)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
7 years agobpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH...
Miss Islington (bot) [Tue, 13 Feb 2018 07:15:57 +0000 (23:15 -0800)]
bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH-5636) (GH-5650)

(cherry picked from commit b7e2d67f7c035f09c921ca4e7a36529cd502ccf7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)
Miss Islington (bot) [Mon, 12 Feb 2018 23:15:01 +0000 (15:15 -0800)]
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

Using the system and place-dependent default encoding for open()
is a bad idea for IDLE's system and location-independent files.
(cherry picked from commit 688722cedd6437910ff185ecf94fb3b749ad37f2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-29248: Fix os.readlink() on Windows (GH-5577)
Miss Islington (bot) [Mon, 12 Feb 2018 21:39:42 +0000 (13:39 -0800)]
bpo-29248: Fix os.readlink() on Windows (GH-5577)

The PrintNameOffset field of the reparse data buffer
was treated as a number of characters instead of bytes.
(cherry picked from commit 3c34aad4e7a95913ec7db8e5e948a8fc69047bf7)

Co-authored-by: SSE4 <tomskside@gmail.com>
7 years agobpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)
Miss Islington (bot) [Mon, 12 Feb 2018 20:34:52 +0000 (12:34 -0800)]
bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)

GUI test test_file_buttons() only looks at initial ascii-only lines,
but failed on systems where open() defaults to 'ascii' because
readline() internally reads and decodes far enough ahead to encounter
a non-ascii character in CREDITS.txt.
(cherry picked from commit f34e03ec0ea6a4cef8d966087c77e616c4a5893b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (GH-5449) (#5641)
Miss Islington (bot) [Mon, 12 Feb 2018 20:12:24 +0000 (12:12 -0800)]
bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (GH-5449) (#5641)

(cherry picked from commit 7766b96ab80b04509bbac708ee5ecf3c1c5934fc)

Co-authored-by: Коренберг Марк <socketpair@gmail.com>
7 years agoFix typo in Include/objimpl.h, the word "has" was missing (GH-5568) (GH-5569)
Miss Islington (bot) [Mon, 12 Feb 2018 07:33:11 +0000 (23:33 -0800)]
Fix typo in Include/objimpl.h, the word "has" was missing (GH-5568) (GH-5569)

It now reads: ...be aware that Python has no control over...
(cherry picked from commit 517da1e58f4c489d4b31579852cde5f7113da08e)

Co-authored-by: Alexey <forestbiiird@gmail.com>
7 years agobpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622) (GH-5631)
Miss Islington (bot) [Sun, 11 Feb 2018 23:21:02 +0000 (15:21 -0800)]
bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622) (GH-5631)

Describe *text* as an alias for *universal_newlines* in more places that people are likely to be referred to.
(cherry picked from commit e14c01037877768a3fe766e50d14993bd5d8a67e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
7 years agoFix AppVeyor doc short-circuit (GH-5633)
Miss Islington (bot) [Sun, 11 Feb 2018 22:14:45 +0000 (14:14 -0800)]
Fix AppVeyor doc short-circuit (GH-5633)

(cherry picked from commit 6ea20fc719dcaf102d2cefa1786f0421514f7a58)

7 years ago[3.7] Add short-circuit for doc changes to AppVeyor (GH-5626)
Zachary Ware [Sun, 11 Feb 2018 17:55:32 +0000 (11:55 -0600)]
[3.7] Add short-circuit for doc changes to AppVeyor (GH-5626)

(cherry picked from commit 28607e0dd9417ce44a109980ffd60697c1afdea0)

7 years agobpo-32604: Make _xxsubinterpreters build on Windows (GH-5624)
Miss Islington (bot) [Sun, 11 Feb 2018 17:16:04 +0000 (09:16 -0800)]
bpo-32604: Make _xxsubinterpreters build on Windows (GH-5624)

This is not the ideal solution; this means that a test module is now
always included in the main python3x.dll.  However, we're already
including xxsubtype, so why not?
(cherry picked from commit 310b05289b5d9550040f469e60b5e8e77f1022b6)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
7 years agobpo-11015: Update test.support documentation (GH-5619)
Miss Islington (bot) [Sun, 11 Feb 2018 16:34:28 +0000 (08:34 -0800)]
bpo-11015: Update test.support documentation (GH-5619)

(cherry picked from commit 988fb28431d3a3fc5dc6eb657c8a4baacc04d9ce)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
7 years agobpo-32792: Preserve mapping order in ChainMap() (GH-5586) (#GH-5617)
Miss Islington (bot) [Sun, 11 Feb 2018 09:09:52 +0000 (01:09 -0800)]
bpo-32792: Preserve mapping order in ChainMap() (GH-5586) (#GH-5617)

(cherry picked from commit 3793f95f98c3112ce447288a5bf9899eb9e35423)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
7 years agobpo-32800: Update link to w3c doc for xml default namespaces (GH-5609) (GH-5611)
Miss Islington (bot) [Sat, 10 Feb 2018 23:08:34 +0000 (15:08 -0800)]
bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609) (GH-5611)

The new link is given in a red box on the old page.
(cherry picked from commit 8d1f2f40389c476d9240ec87a33da0373597c6af)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
7 years agotravis: Use -O3 option (GH-5599)
Miss Islington (bot) [Sat, 10 Feb 2018 11:56:22 +0000 (03:56 -0800)]
travis: Use -O3 option (GH-5599)

We don't use debugger on Travis.
(cherry picked from commit 8ff53564730f7ba503f5ad94418c309c48e8516d)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5602)
Miss Islington (bot) [Fri, 9 Feb 2018 22:00:48 +0000 (14:00 -0800)]
bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5602)

Co-authored-by: Jake Davis <jcdavis@awedge.net>
(cherry picked from commit 2411292ba8155327125d8a1da8a4c9fa003d5909)

7 years agoFix some warnings produced by different compilers. (GH-5593) (GH-5600)
Miss Islington (bot) [Fri, 9 Feb 2018 15:56:34 +0000 (07:56 -0800)]
Fix some warnings produced by different compilers. (GH-5593) (GH-5600)

(cherry picked from commit bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoMake formatting of some return codes conforming to the general style. (GH-5587) ...
Miss Islington (bot) [Fri, 9 Feb 2018 12:08:04 +0000 (04:08 -0800)]
Make formatting of some return codes conforming to the general style. (GH-5587) (GH-5597)

(cherry picked from commit 5bb0005f9ff768ac443924b4bb26c3818ce8dc5a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-32775: Fix regular expression warnings in fnmatch. (GH-5583) (GH-5596)
Miss Islington (bot) [Fri, 9 Feb 2018 11:56:50 +0000 (03:56 -0800)]
bpo-32775: Fix regular expression warnings in fnmatch. (GH-5583) (GH-5596)

fnmatch.translate() no longer produces patterns which contain set
operations.

Sets starting with '[' or containing '--', '&&', '~~' or '||' will
be interpreted differently in regular expressions in future versions.
Currently they emit warnings. fnmatch.translate() now avoids producing
patterns containing such sets by accident.
(cherry picked from commit 23cdbfa744f0ec0e9e7575d378df4cb758691cd3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>