From 0b8148adcb1b05fed88c159155a5b0170cf2efa6 Mon Sep 17 00:00:00 2001 From: Kyle Lawlor Date: Sat, 15 Feb 2020 18:37:09 -0500 Subject: [PATCH 1/3] add a deprecation warning for python3.5 --- trio/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trio/__init__.py b/trio/__init__.py index 6e9035d8fd..019323f53c 100644 --- a/trio/__init__.py +++ b/trio/__init__.py @@ -64,7 +64,7 @@ open_ssl_over_tcp_stream, open_ssl_over_tcp_listeners, serve_ssl_over_tcp ) -from ._deprecate import TrioDeprecationWarning +from ._deprecate import TrioDeprecationWarning, warn_deprecated # Submodules imported by default from . import hazmat @@ -170,3 +170,8 @@ __name__ + ".subprocess", _deprecated_subprocess_reexports.__dict__ ) del fixup_module_metadata + +import sys +if sys.version_info < (3, 6): + _deprecate.warn_deprecated("Support for Python 3.5", "0.14", issue=75, instead="Python 3.6+") +del sys From 4e1e3aecb5bcb829a391086b6993565dffbf83c3 Mon Sep 17 00:00:00 2001 From: Kyle Lawlor Date: Wed, 19 Feb 2020 11:08:43 -0500 Subject: [PATCH 2/3] remove an unneeded import statement --- trio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trio/__init__.py b/trio/__init__.py index 019323f53c..0c2ff96a44 100644 --- a/trio/__init__.py +++ b/trio/__init__.py @@ -64,7 +64,7 @@ open_ssl_over_tcp_stream, open_ssl_over_tcp_listeners, serve_ssl_over_tcp ) -from ._deprecate import TrioDeprecationWarning, warn_deprecated +from ._deprecate import TrioDeprecationWarning # Submodules imported by default from . import hazmat From 07488c2dfe3810c29cc47d6c1bd6406818dcb46d Mon Sep 17 00:00:00 2001 From: Kyle Lawlor Date: Wed, 19 Feb 2020 11:33:48 -0500 Subject: [PATCH 3/3] apply yapf formatting --- trio/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trio/__init__.py b/trio/__init__.py index 0c2ff96a44..d517bc7f18 100644 --- a/trio/__init__.py +++ b/trio/__init__.py @@ -173,5 +173,7 @@ import sys if sys.version_info < (3, 6): - _deprecate.warn_deprecated("Support for Python 3.5", "0.14", issue=75, instead="Python 3.6+") + _deprecate.warn_deprecated( + "Support for Python 3.5", "0.14", issue=75, instead="Python 3.6+" + ) del sys