diff options
| author | Guido Imperiale <crusaderky@gmail.com> | 2019-12-03 17:29:46 +0000 |
|---|---|---|
| committer | Guido Imperiale <crusaderky@gmail.com> | 2019-12-03 17:29:46 +0000 |
| commit | 31a01bf568ec55b9ecd2862ff9daf9dbae703170 (patch) | |
| tree | d84d1c0985001fba67f4de001b1d30f53d18b536 /pint/systems.py | |
| parent | cf05eb8ddb74895a01986bb77d6aef64429cabf5 (diff) | |
| download | pint-31a01bf568ec55b9ecd2862ff9daf9dbae703170.tar.gz | |
Remove 2.7 support from codebase
Diffstat (limited to 'pint/systems.py')
| -rw-r--r-- | pint/systems.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pint/systems.py b/pint/systems.py index 3c56660..3daf527 100644 --- a/pint/systems.py +++ b/pint/systems.py @@ -9,8 +9,6 @@ :license: BSD, see LICENSE for more details. """ -from __future__ import division, unicode_literals, print_function, absolute_import - import re from .definitions import Definition, UnitDefinition @@ -401,9 +399,11 @@ class System(SharedRegistryObject): # Here we invert the equation, in other words # we write old units in terms new unit and expansion - new_unit_dict = dict((new_unit, -1./value) - for new_unit, value in new_unit_expanded.items() - if new_unit != old_unit) + new_unit_dict = { + new_unit: -1./value + for new_unit, value in new_unit_expanded.items() + if new_unit != old_unit + } new_unit_dict[new_unit] = 1 / new_unit_expanded[old_unit] base_unit_names[old_unit] = new_unit_dict @@ -432,7 +432,7 @@ class System(SharedRegistryObject): return system -class Lister(object): +class Lister: def __init__(self, d): self.d = d |
