Skip to content

Commit

Permalink
src/sage/features/__init__.py: Remove method absolute_path deprecated…
Browse files Browse the repository at this point in the history
… in sagemath#31292 (2022)
  • Loading branch information
mkoeppe committed Jun 8, 2024
1 parent f80b805 commit 9516e45
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/sage/features/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,32 +653,6 @@ def absolute_filename(self) -> str:
# the distribution sagemath-environment.
raise NotImplementedError

def absolute_path(self):
r"""
Deprecated alias for :meth:`absolute_filename`.
Deprecated to make way for a method of this name returning a ``Path``.
EXAMPLES::
sage: from sage.features import Executable
sage: Executable(name="sh", executable="sh").absolute_path()
doctest:warning...
DeprecationWarning: method absolute_path has been replaced by absolute_filename
See https://github.com/sagemath/sage/issues/31292 for details.
'/...bin/sh'
"""
try:
from sage.misc.superseded import deprecation
except ImportError:
# The import can fail because sage.misc.superseded is provided by
# the distribution sagemath-objects, which is not an
# install-requires of the distribution sagemath-environment.
pass
else:
deprecation(31292, 'method absolute_path has been replaced by absolute_filename')
return self.absolute_filename()


class Executable(FileFeature):
r"""
Expand Down

0 comments on commit 9516e45

Please sign in to comment.