diff options
-rw-r--r-- | numpy/_globals.py | 2 | ||||
-rw-r--r-- | numpy/core/code_generators/genapi.py | 4 | ||||
-rw-r--r-- | numpy/core/records.py | 2 | ||||
-rw-r--r-- | numpy/f2py/auxfuncs.py | 2 | ||||
-rw-r--r-- | numpy/ma/core.py | 22 | ||||
-rw-r--r-- | numpy/ma/extras.py | 2 |
6 files changed, 17 insertions, 17 deletions
diff --git a/numpy/_globals.py b/numpy/_globals.py index 64a84da96..2d7b69bc4 100644 --- a/numpy/_globals.py +++ b/numpy/_globals.py @@ -53,7 +53,7 @@ class VisibleDeprecationWarning(UserWarning): pass -class _NoValue: +class _NoValue(object): """Special keyword value. This class may be used as the default value assigned to a deprecated diff --git a/numpy/core/code_generators/genapi.py b/numpy/core/code_generators/genapi.py index e4651de3b..42c564a97 100644 --- a/numpy/core/code_generators/genapi.py +++ b/numpy/core/code_generators/genapi.py @@ -72,7 +72,7 @@ def _repl(str): return str.replace('Bool', 'npy_bool') -class StealRef: +class StealRef(object): def __init__(self, arg): self.arg = arg # counting from 1 @@ -83,7 +83,7 @@ class StealRef: return 'NPY_STEALS_REF_TO_ARG(%d)' % self.arg -class NonNull: +class NonNull(object): def __init__(self, arg): self.arg = arg # counting from 1 diff --git a/numpy/core/records.py b/numpy/core/records.py index 69d997cd0..b6ff8bf65 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -80,7 +80,7 @@ def find_duplicate(list): dup.append(list[i]) return dup -class format_parser: +class format_parser(object): """ Class to convert formats, names, titles description to a dtype. diff --git a/numpy/f2py/auxfuncs.py b/numpy/f2py/auxfuncs.py index d27b95947..404bdbd2d 100644 --- a/numpy/f2py/auxfuncs.py +++ b/numpy/f2py/auxfuncs.py @@ -552,7 +552,7 @@ class F2PYError(Exception): pass -class throw_error: +class throw_error(object): def __init__(self, mess): self.mess = mess diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 09db76e32..8cfbed687 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -784,7 +784,7 @@ ufunc_domain = {} ufunc_fills = {} -class _DomainCheckInterval: +class _DomainCheckInterval(object): """ Define a valid interval, so that : @@ -809,7 +809,7 @@ class _DomainCheckInterval: umath.less(x, self.a)) -class _DomainTan: +class _DomainTan(object): """ Define a valid interval for the `tan` function, so that: @@ -827,7 +827,7 @@ class _DomainTan: return umath.less(umath.absolute(umath.cos(x)), self.eps) -class _DomainSafeDivide: +class _DomainSafeDivide(object): """ Define a domain for safe division. @@ -848,7 +848,7 @@ class _DomainSafeDivide: return umath.absolute(a) * self.tolerance >= umath.absolute(b) -class _DomainGreater: +class _DomainGreater(object): """ DomainGreater(v)(x) is True where x <= v. @@ -864,7 +864,7 @@ class _DomainGreater: return umath.less_equal(x, self.critical_value) -class _DomainGreaterEqual: +class _DomainGreaterEqual(object): """ DomainGreaterEqual(v)(x) is True where x < v. @@ -880,7 +880,7 @@ class _DomainGreaterEqual: return umath.less(x, self.critical_value) -class _MaskedUnaryOperation: +class _MaskedUnaryOperation(object): """ Defines masked version of unary operations, where invalid values are pre-masked. @@ -959,7 +959,7 @@ class _MaskedUnaryOperation: return "Masked version of %s. [Invalid values are masked]" % str(self.f) -class _MaskedBinaryOperation: +class _MaskedBinaryOperation(object): """ Define masked version of binary operations, where invalid values are pre-masked. @@ -1111,7 +1111,7 @@ class _MaskedBinaryOperation: return "Masked version of " + str(self.f) -class _DomainedBinaryOperation: +class _DomainedBinaryOperation(object): """ Define binary operations that have a domain, like divide. @@ -2358,7 +2358,7 @@ def masked_invalid(a, copy=True): ############################################################################### -class _MaskedPrintOption: +class _MaskedPrintOption(object): """ Handle the string used to represent missing data in a masked array. @@ -6417,7 +6417,7 @@ ptp.__doc__ = MaskedArray.ptp.__doc__ ############################################################################## -class _frommethod: +class _frommethod(object): """ Define functions from existing MaskedArray methods. @@ -7895,7 +7895,7 @@ def fromflex(fxarray): return masked_array(fxarray['_data'], mask=fxarray['_mask']) -class _convert2ma: +class _convert2ma(object): """ Convert functions from numpy to numpy.ma. diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 0a68dfc7d..9084ae77f 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -215,7 +215,7 @@ def masked_all_like(arr): #####-------------------------------------------------------------------------- #---- --- Standard functions --- #####-------------------------------------------------------------------------- -class _fromnxfunction: +class _fromnxfunction(object): """ Defines a wrapper to adapt NumPy functions to masked arrays. |