Ticket #9054: trac_9054_call_super_constructors.patch

File trac_9054_call_super_constructors.patch, 1.3 KB (added by saraedum, 6 years ago)

added missing calls to superclass constructors

  • sage/rings/function_field/function_field_order.py

    exporting patch:
    # HG changeset patch
    # User Julian Rueth <julian.rueth@gmail.com>
    Trac 9054: added missing calls to super constructors
    
    diff --git a/sage/rings/function_field/function_field_order.py b/sage/rings/function_field/function_field_order.py
    index d88af0a..46a47e1 100644
    a b class FunctionFieldOrder(IntegralDomain): 
    1717            sage: isinstance(R, sage.rings.function_field.function_field_order.FunctionFieldOrder)
    1818            True
    1919        """
     20        IntegralDomain.__init__(self, self)
    2021        self._fraction_field = fraction_field
    2122
    2223    def _repr_(self):
    class FunctionFieldOrder_rational(PrincipalIdealDomain, FunctionFieldOrder): 
    303304            <class 'sage.rings.function_field.function_field_order.FunctionFieldOrder_rational_with_category'>
    304305        """
    305306        FunctionFieldOrder.__init__(self, function_field)
    306         IntegralDomain.__init__(self, self, names = function_field.variable_names(), normalize = False)
     307        PrincipalIdealDomain.__init__(self, self, names = function_field.variable_names(), normalize = False)
    307308        self._ring = function_field._ring
    308309        self._populate_coercion_lists_(coerce_list=[self._ring])
    309310        self._gen = self(self._ring.gen())