summaryrefslogtreecommitdiff
path: root/pint/matplotlib.py
diff options
context:
space:
mode:
authorGuido Imperiale <crusaderky@gmail.com>2019-12-03 17:51:16 +0000
committerGuido Imperiale <crusaderky@gmail.com>2019-12-03 17:51:16 +0000
commitacd7fd4b69225859430310926439e383def74f34 (patch)
tree5ab77955a4d6e2e0c2c1a5e5050226e843476ce7 /pint/matplotlib.py
parent69b24e6cc6c05ce1f9e938339c13af8534b3d8c0 (diff)
downloadpint-acd7fd4b69225859430310926439e383def74f34.tar.gz
Python 3 super()
Diffstat (limited to 'pint/matplotlib.py')
-rw-r--r--pint/matplotlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pint/matplotlib.py b/pint/matplotlib.py
index 67ffef8..49aad20 100644
--- a/pint/matplotlib.py
+++ b/pint/matplotlib.py
@@ -20,14 +20,14 @@ class PintAxisInfo(matplotlib.units.AxisInfo):
def __init__(self, units):
"""Set the default label to the pretty-print of the unit."""
- super(PintAxisInfo, self).__init__(label='{:P}'.format(units))
+ super().__init__(label='{:P}'.format(units))
class PintConverter(matplotlib.units.ConversionInterface):
"""Implement support for pint within matplotlib's unit conversion framework."""
def __init__(self, registry):
- super(PintConverter, self).__init__()
+ super().__init__()
self._reg = registry
def convert(self, value, unit, axis):