Skip to content
Snippets Groups Projects
Commit 67b0a567 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

SVG: Cleanup, don't use semicolon

parent f99816d1
Branches
Tags
No related merge requests found
...@@ -47,10 +47,9 @@ SVGEmptyStyles = {'useFill': None, ...@@ -47,10 +47,9 @@ SVGEmptyStyles = {'useFill': None,
def srgb_to_linearrgb(c): def srgb_to_linearrgb(c):
if c < 0.04045: if c < 0.04045:
return 0.0 if c < 0.0 else c * (1.0 / 12.92); return 0.0 if c < 0.0 else c * (1.0 / 12.92)
else: else:
return pow((c + 0.055) * (1.0 / 1.055), 2.4); return pow((c + 0.055) * (1.0 / 1.055), 2.4)
def SVGParseFloat(s, i=0): def SVGParseFloat(s, i=0):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment