From acd7fd4b69225859430310926439e383def74f34 Mon Sep 17 00:00:00 2001 From: Guido Imperiale Date: Tue, 3 Dec 2019 17:51:16 +0000 Subject: Python 3 super() --- pint/matplotlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pint/matplotlib.py') 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): -- cgit v1.2.1