-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3.10 / bugfix 3.9 - 3.8 (#167)
Co-authored-by: Franck Nijhof <[email protected]>
- Loading branch information
Showing
10 changed files
with
29 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py | ||
index f34a5b4b44..b1d0f1e61e 100644 | ||
--- a/Lib/asyncio/unix_events.py | ||
+++ b/Lib/asyncio/unix_events.py | ||
@@ -369,6 +369,11 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): | ||
fut.set_result(total_sent) | ||
return | ||
|
||
+ # On 32-bit architectures truncate to 1GiB to avoid OverflowError, | ||
+ # see bpo-38319. | ||
+ if sys.maxsize < 2 ** 32: | ||
+ blocksize = min(blocksize, 2 ** 30) | ||
+ | ||
try: | ||
sent = os.sendfile(fd, fileno, offset, blocksize) | ||
except (BlockingIOError, InterruptedError): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ codenotary: | |
signer: [email protected] | ||
base_image: [email protected] | ||
args: | ||
PYTHON_VERSION: 3.7.12 | ||
PYTHON_VERSION: 3.10.4 | ||
PIP_VERSION: 22.0.3 | ||
GPG_KEY: 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D | ||
GPG_KEY: A035C8C19219BA821ECEA86B64E628F8D684696D | ||
labels: | ||
io.hass.base.name: python | ||
org.opencontainers.image.source: https://github.com/home-assistant/docker-base |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ codenotary: | |
signer: [email protected] | ||
base_image: [email protected] | ||
args: | ||
PYTHON_VERSION: 3.8.12 | ||
PYTHON_VERSION: 3.8.13 | ||
PIP_VERSION: 22.0.3 | ||
GPG_KEY: E3FF2839C048B25C084DEBE9B26995E310250568 | ||
labels: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ codenotary: | |
signer: [email protected] | ||
base_image: [email protected] | ||
args: | ||
PYTHON_VERSION: 3.9.9 | ||
PYTHON_VERSION: 3.9.12 | ||
PIP_VERSION: 22.0.3 | ||
GPG_KEY: E3FF2839C048B25C084DEBE9B26995E310250568 | ||
labels: | ||
|