Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
36741: Insert lost argument
  • Loading branch information
soehms committed Mar 11, 2024
commit 1835ed48e3925f30a4eccba793a3688dc557bfe1
6 changes: 3 additions & 3 deletions src/sage/features/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Here we test whether the grape GAP package is available::

sage: from sage.features.gap import GapPackage
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_packages
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_package_grape
FeatureTestResult('gap_package_grape', True)

Note that a :class:`FeatureTestResult` acts like a bool in most contexts::
Expand Down Expand Up @@ -188,7 +188,7 @@ def is_present(self):
EXAMPLES::

sage: from sage.features.gap import GapPackage
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_packages
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_package_grape
FeatureTestResult('gap_package_grape', True)
sage: GapPackage("NOT_A_PACKAGE", spkg="gap_packages").is_present()
FeatureTestResult('gap_package_NOT_A_PACKAGE', False)
Expand Down Expand Up @@ -809,7 +809,7 @@ class StaticFile(FileFeature):
To install no_such_file...you can try to run...sage -i some_spkg...
Further installation instructions might be available at http://rand.om.
"""
def __init__(self, name, filename, search_path=None, type='optional', **kwds):
def __init__(self, name, filename, *, search_path=None, type='optional', **kwds):
r"""
TESTS::

Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _is_present(self):
EXAMPLES::

sage: from sage.features.gap import GapPackage
sage: GapPackage("grape", spkg="gap_packages")._is_present() # optional - gap_packages
sage: GapPackage("grape", spkg="gap_packages")._is_present() # optional - gap_package_grape
FeatureTestResult('gap_package_grape', True)
"""
try:
Expand Down