-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Drop support for and remove references to EOL Python 3.6 #11683
Changes from all commits
caf0256
0b34cde
268b817
acef726
0add262
1b98edb
52bd94f
c74dcea
d717f1b
b979f33
dd20fc1
ebb53f4
bb476d4
7496e37
b156635
1ccaa28
c5e6dfa
9978524
b38d9ea
f810705
36f182f
0a566a9
112ee00
efef6d4
c5a9ad2
b76aaae
26d41fa
67a8d7b
8b695ef
954665d
cb763cc
7aaa772
8d209b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Drop support for Python 3.6, which is EOL. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ | |
| import gc | ||
| import logging | ||
| import os | ||
| import platform | ||
| import signal | ||
| import socket | ||
| import sys | ||
|
|
@@ -468,16 +467,12 @@ def run_sighup(*args: Any, **kwargs: Any) -> None: | |
| # everything currently allocated are things that will be used for the | ||
| # rest of time. Doing so means less work each GC (hopefully). | ||
| # | ||
| # This only works on Python 3.7 | ||
| if platform.python_implementation() == "CPython" and sys.version_info >= (3, 7): | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need to still check the platform implementation is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pypy has In the interest of duck typing, we should probably check (Or we could say we're standardizing on CPython and rip the Pypy bits out of our codebase; no shame in that)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either of those seems ok, just a shame to delete something that's working.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great, I will re-implement the relevant parts of this check. Since this is already merged, what would be the best way of going about that? Opening a new PR restoring that functionality?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Exactly! It probably makes sense to just use the same changelog entry so they'll get merged by towncrier. |
||
| gc.collect() | ||
| gc.freeze() | ||
| gc.collect() | ||
| gc.freeze() | ||
|
|
||
| # Speed up shutdowns by freezing all allocated objects. This moves everything | ||
| # into the permanent generation and excludes them from the final GC. | ||
| # Unfortunately only works on Python 3.7 | ||
| if platform.python_implementation() == "CPython" and sys.version_info >= (3, 7): | ||
| atexit.register(gc.freeze) | ||
| atexit.register(gc.freeze) | ||
|
|
||
|
|
||
| def setup_sentry(hs: "HomeServer") -> None: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.