Do not explicitly extend object

This commit is contained in:
Nikita Karamov 2023-01-23 06:45:59 +01:00
parent 1ceeaf11e6
commit d1fd32fd5b
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
5 changed files with 11 additions and 11 deletions

View file

@ -421,7 +421,7 @@ sciExponent = re.compile(r"[eE]([-+]?\d+)")
unit = re.compile("(em|ex|px|pt|pc|cm|mm|in|%){1,1}$")
class Unit(object):
class Unit:
# Integer constants for units.
INVALID = -1
NONE = 0
@ -483,7 +483,7 @@ class Unit(object):
str = staticmethod(str)
class SVGLength(object):
class SVGLength:
def __init__(self, str):
try: # simple unitless and no scientific notation