Do not explicitly extend object
This commit is contained in:
parent
1ceeaf11e6
commit
d1fd32fd5b
5 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue