From 945132b9524a6734957e70a00830b6db07f74b65 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 14 Nov 2021 14:16:05 -0800 Subject: [PATCH] src/sage/features/interfaces.py: Fix up --- src/sage/features/interfaces.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/sage/features/interfaces.py b/src/sage/features/interfaces.py index 21b8b01445f..231fba136b2 100644 --- a/src/sage/features/interfaces.py +++ b/src/sage/features/interfaces.py @@ -66,49 +66,49 @@ class Magma(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'magma', 'sage.interfaces.magma') + return InterfaceFeature.__classcall__(cls, 'magma', 'sage.interfaces.magma') class Matlab(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'matlab', 'sage.interfaces.matlab') + return InterfaceFeature.__classcall__(cls, 'matlab', 'sage.interfaces.matlab') class Mathematica(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'mathematica', 'sage.interfaces.mathematica') + return InterfaceFeature.__classcall__(cls, 'mathematica', 'sage.interfaces.mathematica') class Maple(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'maple', 'sage.interfaces.maple') + return InterfaceFeature.__classcall__(cls, 'maple', 'sage.interfaces.maple') class Macaulay2(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'macaulay2', 'sage.interfaces.macaulay2') + return InterfaceFeature.__classcall__(cls, 'macaulay2', 'sage.interfaces.macaulay2') class Octave(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'octave', 'sage.interfaces.octave') + return InterfaceFeature.__classcall__(cls, 'octave', 'sage.interfaces.octave') class Scilab(InterfaceFeature): @staticmethod def __classcall__(cls): - return InterfaceFeature(cls, 'scilab', 'sage.interfaces.scilab') + return InterfaceFeature.__classcall__(cls, 'scilab', 'sage.interfaces.scilab') def all_features(): @@ -119,8 +119,13 @@ def all_features(): sage: from sage.features.interfaces import all_features sage: list(all_features()) - [Feature(: sage.interfaces.magma), ..., - Feature(: sage.interfaces.scilab)] + [Feature('magma'), + Feature('matlab'), + Feature('mathematica'), + Feature('maple'), + Feature('macaulay2'), + Feature('octave'), + Feature('scilab')] """ return [Magma(), Matlab(),