summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.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/arrayprint.py
parent60cd9d717524e5a003bee9e4270b9c6b8144a7af (diff)
downloadnumpy-c1aa1af62f6e9fcdda92d6d0991b15051a565814.tar.gz
MAINT: use super() as described by PEP 3135
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 5c1d6cb63..3251c51e3 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -1253,12 +1253,12 @@ class DatetimeFormat(_TimelikeFormat):
self.legacy = legacy
# must be called after the above are configured
- super(DatetimeFormat, self).__init__(x)
+ super().__init__(x)
def __call__(self, x):
if self.legacy == '1.13':
return self._format_non_nat(x)
- return super(DatetimeFormat, self).__call__(x)
+ return super().__call__(x)
def _format_non_nat(self, x):
return "'%s'" % datetime_as_string(x,