Skip to content

Commit 4c22a8f

Browse files
committed
[init/setup] Change Py2 deprecated message
1 parent 765f37a commit 4c22a8f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

odml/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def _format_warning(warn_msg, *args, **kwargs):
3030
warnings.formatwarning = _format_warning
3131

3232
if _python_version.major < 3:
33-
msg = "Python 2 has been deprecated.\n\todML support for Python 2 will be dropped August 2020."
33+
msg = "Python 2 has reached end of live."
34+
msg += "\n\todML support for Python 2 has been dropped."
3435
warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
3536
elif _python_version.major == 3 and _python_version.minor < 6:
3637
msg = "The '%s' package is not tested with your Python version. " % __name__

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363

6464
# Make this the last thing people read after a setup.py install
6565
if _python_version.major < 3:
66-
msg = "\n\nPython 2 has been deprecated.\n"
67-
msg += "\todML support for Python 2 will be dropped August 2020."
66+
msg = "Python 2 has reached end of live."
67+
msg += "\n\todML support for Python 2 has been dropped."
6868
print(msg)
6969
elif _python_version.major == 3 and _python_version.minor < 6:
7070
msg = "\n\nThis package is not tested with your Python version. "

0 commit comments

Comments
 (0)