From f6a7601fd794507a7d3fb19e2c6714c4aaa31a24 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Mon, 3 Feb 2014 19:23:09 +0800 Subject: [PATCH] PEP8-ize --- danmaku2ass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/danmaku2ass.py b/danmaku2ass.py index ef854a2..6e5a249 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -436,6 +436,7 @@ def WriteCommentAcfunPositioned(f, c, width, height, styleid): except (IndexError, ValueError) as e: logging.warning(_('Invalid comment: %r') % c[3]) + def WriteCommentSH5VPositioned(f, c, width, height, styleid): def GetTransformStyles(x=None, y=None, fsize=None, rotate_z=None, rotate_y=None, color=None, alpha=None): @@ -479,6 +480,7 @@ def WriteCommentSH5VPositioned(f, c, width, height, styleid): except (IndexError, ValueError) as e: logging.warning(_('Invalid comment: %r') % c[3]) + # Result: (f, dx, dy) # To convert: NewX = f*x+dx, NewY = f*y+dy def GetZoomFactor(SourceSize, TargetSize):