Skip to content

Commit 1835ed4

Browse files
committed
36741: Insert lost argument
1 parent eb908b4 commit 1835ed4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sage/features/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Here we test whether the grape GAP package is available::
2929
3030
sage: from sage.features.gap import GapPackage
31-
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_packages
31+
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_package_grape
3232
FeatureTestResult('gap_package_grape', True)
3333
3434
Note that a :class:`FeatureTestResult` acts like a bool in most contexts::
@@ -188,7 +188,7 @@ def is_present(self):
188188
EXAMPLES::
189189
190190
sage: from sage.features.gap import GapPackage
191-
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_packages
191+
sage: GapPackage("grape", spkg="gap_packages").is_present() # optional - gap_package_grape
192192
FeatureTestResult('gap_package_grape', True)
193193
sage: GapPackage("NOT_A_PACKAGE", spkg="gap_packages").is_present()
194194
FeatureTestResult('gap_package_NOT_A_PACKAGE', False)
@@ -809,7 +809,7 @@ class StaticFile(FileFeature):
809809
To install no_such_file...you can try to run...sage -i some_spkg...
810810
Further installation instructions might be available at http://rand.om.
811811
"""
812-
def __init__(self, name, filename, search_path=None, type='optional', **kwds):
812+
def __init__(self, name, filename, *, search_path=None, type='optional', **kwds):
813813
r"""
814814
TESTS::
815815

src/sage/features/gap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _is_present(self):
5353
EXAMPLES::
5454
5555
sage: from sage.features.gap import GapPackage
56-
sage: GapPackage("grape", spkg="gap_packages")._is_present() # optional - gap_packages
56+
sage: GapPackage("grape", spkg="gap_packages")._is_present() # optional - gap_package_grape
5757
FeatureTestResult('gap_package_grape', True)
5858
"""
5959
try:

0 commit comments

Comments
 (0)