Skip to content

Commit

Permalink
[init/setup] Change Py2 deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsonntag committed Nov 2, 2021
1 parent 765f37a commit 4c22a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion odml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
Expand Down

0 comments on commit 4c22a8f

Please sign in to comment.