Skip to content

Commit

Permalink
Update svg_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
balavec committed Oct 29, 2019
1 parent 77d745b commit e0924a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/namedfile/utils/svg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def process_svg(data):
return content_type, w, h


def dimension_int(dimension) -> int:
def dimension_int(dimension):
if isinstance(dimension, str):
try:
_dimension = int(float(re.sub(r"[^\d\.]", "", dimension)))
Expand Down

0 comments on commit e0924a2

Please sign in to comment.