From 284267c9c0832ac6dcac66d99b6a5b8f46b34f50 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 13 Nov 2022 17:25:56 -0800 Subject: [PATCH] Fixed some bugs picked up in flake8 --- pycmx/channel_map.py | 4 ++-- pycmx/transition.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pycmx/channel_map.py b/pycmx/channel_map.py index 6c42018..e2f3337 100644 --- a/pycmx/channel_map.py +++ b/pycmx/channel_map.py @@ -98,8 +98,8 @@ class ChannelMap: self.set_audio_channel(int( matchresult.group(1)), True ) def _append_ext(self, audio_ext): - self.a3 = ext.audio3 - self.a4 = ext.audio4 + self.a3 = audio_ext.audio3 + self.a4 = audio_ext.audio4 def __or__(self, other): """ diff --git a/pycmx/transition.py b/pycmx/transition.py index 815f7d0..988b411 100644 --- a/pycmx/transition.py +++ b/pycmx/transition.py @@ -70,12 +70,12 @@ class Transition: @property def key_background(self): "`True` if this edit is a key background." - return self.transition == KeyBackground + return self.transition == Transition.KeyBackground @property def key_foreground(self): "`True` if this edit is a key foreground." - return self.transition == Key + return self.transition == Transition.Key @property def key_out(self): @@ -83,4 +83,4 @@ class Transition: `True` if this edit is a key out. This material will removed from the key foreground and replaced with the key background. """ - return self.transition == KeyOut + return self.transition == Transition.KeyOut