[Bf-extensions-cvs] [67b0a567] master: SVG: Cleanup, don't use semicolon
Sergey Sharybin
noreply at git.blender.org
Mon Oct 29 16:09:45 CET 2018
Commit: 67b0a56743b2786d27dc34d4d7c14cae9fe4ce16
Author: Sergey Sharybin
Date: Mon Oct 29 15:50:06 2018 +0100
Branches: master
https://developer.blender.org/rBA67b0a56743b2786d27dc34d4d7c14cae9fe4ce16
SVG: Cleanup, don't use semicolon
===================================================================
M io_curve_svg/import_svg.py
===================================================================
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index c597aaf0..8cfd1178 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -47,10 +47,9 @@ SVGEmptyStyles = {'useFill': None,
def srgb_to_linearrgb(c):
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:
- 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):
"""
More information about the Bf-extensions-cvs
mailing list