Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
20382: desirable error message + typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nthiery committed Apr 7, 2016
1 parent 97d47af commit 8b6fcc9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sage/misc/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
sage: Executable(name="random", executable="randomOochoz6x", spkg="random", url="http://rand.om").require()
Traceback (most recent call last):
...
FeatureNotPresentError: random is not available. To use this feature make
sure that randomOochoz6x is in the PATH. To install random you can try to
run sage -i random. Further installation instructions might be available at
http://rand.om.
FeatureNotPresentError: random is not available.
To use this feature make sure that `randomOochoz6x` is in the PATH.
To install random you can try to run `sage -i random`.
Further installation instructions might be available at http://rand.om.
As can be seen above, features try to produce helpful error messages.
"""
Expand Down Expand Up @@ -123,7 +123,7 @@ def is_present(self):
sage: from sage.misc.feature import GapPackage
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional: gap_packages
True
sage: GapPackage("NOT_A_PACKAGE", spkg="gap_packages").is_present() # optional: gap_packages
sage: GapPackage("NOT_A_PACKAGE", spkg="gap_packages").is_present()
False
"""
return True
Expand Down Expand Up @@ -271,7 +271,7 @@ def is_functional(self):
EXAMPLES:
This default implementation always return ``True``::
This default implementation always returns ``True``::
sage: from sage.misc.feature import Executable
sage: Executable(name="sh", executable="sh").is_functional()
Expand Down

0 comments on commit 8b6fcc9

Please sign in to comment.