From 4c22a8f6413dcfa146c735473a6fb540de4499b5 Mon Sep 17 00:00:00 2001 From: "M. Sonntag" Date: Tue, 2 Nov 2021 09:23:35 +0100 Subject: [PATCH] [init/setup] Change Py2 deprecated message --- odml/__init__.py | 3 ++- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/odml/__init__.py b/odml/__init__.py index 6d35f2db..b67b0366 100644 --- a/odml/__init__.py +++ b/odml/__init__.py @@ -30,7 +30,8 @@ def _format_warning(warn_msg, *args, **kwargs): warnings.formatwarning = _format_warning if _python_version.major < 3: - msg = "Python 2 has been deprecated.\n\todML support for Python 2 will be dropped August 2020." + msg = "Python 2 has reached end of live." + msg += "\n\todML support for Python 2 has been dropped." warnings.warn(msg, category=DeprecationWarning, stacklevel=2) elif _python_version.major == 3 and _python_version.minor < 6: msg = "The '%s' package is not tested with your Python version. " % __name__ diff --git a/setup.py b/setup.py index 91019881..f43c24a5 100644 --- a/setup.py +++ b/setup.py @@ -63,8 +63,8 @@ # Make this the last thing people read after a setup.py install if _python_version.major < 3: - msg = "\n\nPython 2 has been deprecated.\n" - msg += "\todML support for Python 2 will be dropped August 2020." + msg = "Python 2 has reached end of live." + msg += "\n\todML support for Python 2 has been dropped." print(msg) elif _python_version.major == 3 and _python_version.minor < 6: msg = "\n\nThis package is not tested with your Python version. "