Skip to content

Commit 5e04a85

Browse files
committed
src/sage/features/sagemath.py: Fixup
1 parent e3a541e commit 5e04a85

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/sage/features/sagemath.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ def __init__(self):
1010
# sage.combinat will be a namespace package.
1111
# Testing whether sage.combinat itself can be imported is meaningless.
1212
# Hence, we test a Python module within the package.
13-
PythonModule.__init__('sage.combinat.combinations')
13+
PythonModule.__init__(self, 'sage.combinat.combinations')
1414

1515

1616
class sage__graphs(PythonModule):
1717

1818
def __init__(self):
19-
PythonModule.__init__('sage.graphs.graph')
19+
PythonModule.__init__(self, 'sage.graphs.graph')
2020

2121

2222
class sage__rings__real_double(PythonModule):
2323

2424
def __init__(self):
25-
PythonModule.__init__('sage.rings.real_double')
25+
PythonModule.__init__(self, 'sage.rings.real_double')
2626

2727

2828
class sage__symbolic(PythonModule):
2929

3030
def __init__(self):
31-
PythonModule.__init__('sage.symbolic.expression', spkg="sagemath_symbolics")
31+
PythonModule.__init__(self, 'sage.symbolic.expression', spkg="sagemath_symbolics")
3232

3333

3434
def sage_optional_tags():
@@ -46,11 +46,11 @@ def sage_optional_tags():
4646
Instead, we associate distribution packages to Python modules in
4747
:mod:`sage.features.sagemath` via the ``spkg`` parameter of :class:`PythonModule``.
4848
"""
49-
if sage__combinat().is_functional():
49+
if sage__combinat().is_present():
5050
yield 'sage.combinat'
51-
if sage__graphs().is_functional():
51+
if sage__graphs().is_present():
5252
yield 'sage.graphs'
53-
if sage__rings__real_double().is_functional():
53+
if sage__rings__real_double().is_present():
5454
yield 'sage.rings.real_double'
55-
if sage__symbolic().is_functional():
55+
if sage__symbolic().is_present():
5656
yield 'sage.symbolic'

0 commit comments

Comments
 (0)