Code Style/Blank lines

This commit is contained in:
Jamie Hardt
2018-12-29 12:53:08 -08:00
parent 5e902d4926
commit 348962c3f7
3 changed files with 3 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
# (c) 2018 Jamie Hardt
from collections import namedtuple
from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM )
from .edit_list import EditList

View File

@@ -1,12 +1,12 @@
# pycmx
# (c) 2018 Jamie Hardt
from .util import collimate
import re
import sys
from collections import namedtuple
from itertools import count
from .util import collimate
StmtTitle = namedtuple("Title",["title","line_number"])
StmtFCM = namedtuple("FCM",["drop","line_number"])

View File

@@ -1,12 +1,11 @@
# pycmx
# (c) 2018 Jamie Hardt
class Transition:
"""
A CMX transition: a wipe, dissolve or cut.
"""
Cut = "C"
Dissolve = "D"
Wipe = "W"
@@ -14,12 +13,9 @@ class Transition:
Key = "K"
KeyOut = "KO"
def __init__(self, transition, operand):
self.transition = transition
self.operand = operand
self.name = ''
@property
def kind(self):
@@ -49,13 +45,11 @@ class Transition:
"`True` if this traansition is a dissolve."
return self.transition == 'D'
@property
def wipe(self):
"`True` if this transition is a wipe."
return self.transition.startswith('W')
@property
def effect_duration(self):
"""The duration of this transition, in frames of the record target.