summaryrefslogtreecommitdiff
path: root/numpy/core/records.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-03-19 22:03:06 +1300
committerMike Taves <mwtoews@gmail.com>2021-03-19 22:14:30 +1300
commitc1aa1af62f6e9fcdda92d6d0991b15051a565814 (patch)
tree91d6c55737d99f5e6e97c0991a0dbb863e0a75cd /numpy/core/records.py
parent60cd9d717524e5a003bee9e4270b9c6b8144a7af (diff)
downloadnumpy-c1aa1af62f6e9fcdda92d6d0991b15051a565814.tar.gz
MAINT: use super() as described by PEP 3135
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r--numpy/core/records.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py
index a626a0589..0efc951a3 100644
--- a/numpy/core/records.py
+++ b/numpy/core/records.py
@@ -244,12 +244,12 @@ class record(nt.void):
def __repr__(self):
if get_printoptions()['legacy'] == '1.13':
return self.__str__()
- return super(record, self).__repr__()
+ return super().__repr__()
def __str__(self):
if get_printoptions()['legacy'] == '1.13':
return str(self.item())
- return super(record, self).__str__()
+ return super().__str__()
def __getattribute__(self, attr):
if attr in ('setfield', 'getfield', 'dtype'):
@@ -518,7 +518,7 @@ class recarray(ndarray):
return self.setfield(val, *res)
def __getitem__(self, indx):
- obj = super(recarray, self).__getitem__(indx)
+ obj = super().__getitem__(indx)
# copy behavior of getattr, except that here
# we might also be returning a single element