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 # (c) 2018 Jamie Hardt
from collections import namedtuple from collections import namedtuple
from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM ) from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM )
from .edit_list import EditList from .edit_list import EditList

View File

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

View File

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