Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Nov 11, 2020
1 parent 2c781d9 commit 3f04a50
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/sage/interacts/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#*****************************************************************************

from __future__ import absolute_import, division
from decorator import decorater
from decorator import decorator

from sage.all import *
x = SR.var('x')
Expand All @@ -58,7 +58,7 @@
globals()[name] = obj


@decorater
@decorator
def library_interact(f, *args, **kw):
"""
This is a decorator for using interacts in the Sage library.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/interfaces/magma.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@

import re
import sys
from decorator import decorater
from decorator import decorator

from sage.structure.parent import Parent
from .expect import console, Expect, ExpectElement, ExpectFunction, FunctionElement
Expand Down Expand Up @@ -3003,7 +3003,7 @@ def __exit__(self, typ, value, tb):
"""
self.magma.SetVerbose('Groebner', self.groebner_basis_verbose)

@decorater
@decorator
def magma_gb_standard_options(func, *args, **kwds):
"""
Decorator to force default options for Magma.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/interfaces/singular.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
import sys
import pexpect
from time import sleep
from decorator import decorater
from decorator import decorator

from .expect import Expect, ExpectElement, FunctionElement, ExpectFunction

Expand Down Expand Up @@ -2746,7 +2746,7 @@ def __exit__(self, typ, value, tb):
except SingularError:
pass

@decorater
@decorator
def singular_gb_standard_options(func, *args, **kwds):
r"""
Decorator to force a reduced Singular groebner basis.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/libs/giac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# https://www.gnu.org/licenses/
# *****************************************************************************

from decorator import decorater
from decorator import decorator

from sage.structure.proof.all import polynomial as proof_polynomial
from sage.rings.polynomial.multi_polynomial_sequence import PolynomialSequence
Expand Down Expand Up @@ -86,7 +86,7 @@ def __exit__(self, typ, value, tb):
giacsettings.threads = self.threads


@decorater
@decorator
def local_giacsettings(func, *args, **kwds):
"""
Decorator to preserve Giac's proba_epsilon and threads settings.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/structure/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ continue down the MRO and find the ``_add_`` method in the category.
cimport cython
from cpython cimport *
from cpython.ref cimport PyObject
from decorator import decorater
from decorator import decorator

from sage.ext.stdsage cimport *

Expand Down Expand Up @@ -4245,7 +4245,7 @@ def coercion_traceback(dump=True):
else:
return coercion_model.exception_stack()
@decorater
@decorator
def coerce_binop(method, self, other, *args, **kwargs):
r"""
Decorator for a binary operator method for applying coercion to the
Expand Down
6 changes: 3 additions & 3 deletions src/sage/structure/mutability.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Mutability Cython Implementation
# https://www.gnu.org/licenses/
##########################################################################

from decorator import decorater
from decorator import decorator

cdef class Mutability:

Expand Down Expand Up @@ -71,7 +71,7 @@ cdef class Mutability:
##########################################################################
## Method decorators for mutating methods resp. methods that assume immutability

@decorater
@decorator
def require_mutable(f, self, *args,**kwds):
"""
A decorator that requires mutability for a method to be called.
Expand Down Expand Up @@ -115,7 +115,7 @@ def require_mutable(f, self, *args,**kwds):
raise ValueError("%s instance is immutable, %s must not be called" % (type(self), repr(f)))
return f(self, *args, **kwds)

@decorater
@decorator
def require_immutable(f, self, *args, **kwds):
"""
A decorator that requires immutability for a method to be called.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ from cysignals.signals cimport sig_on, sig_off
from sage.ext.cplusplus cimport ccrepr, ccreadstr

from inspect import isfunction
from decorator import decorater
from decorator import decorator
import operator
from .ring import SR
import sage.rings.integer
Expand Down Expand Up @@ -12803,7 +12803,7 @@ def solve_diophantine(f, *args, **kwds):
f = SR(f)
return f.solve_diophantine(*args, **kwds)

@decorater
@decorator
def _eval_on_operands(f, ex, *args, **kwds):
"""
Given a function ``f``, return a new function which takes a symbolic
Expand Down

0 comments on commit 3f04a50

Please sign in to comment.