Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
iluvcapra committed Jun 25, 2023
1 parent 4a12227 commit d5a0acb
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 17 deletions.
5 changes: 2 additions & 3 deletions ptsl/ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
from .rename_selected_clip import RenameSelectedClip
from .rename_target_clip import RenameTargetClip
from .toggle_play_state import \
TogglePlayState, ToggleRecordEnable, \
PlayHalfSpeed, RecordHalfSpeed
TogglePlayState, ToggleRecordEnable, \
PlayHalfSpeed, RecordHalfSpeed

from .memory_locations import EditMemoryLocation, GetMemoryLocations

1 change: 1 addition & 0 deletions ptsl/ops/export_selected_tracks_as_aaf_omf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ptsl.ops import Operation


class ExportSelectedTracksAsAAFOMF(Operation):
pass
2 changes: 1 addition & 1 deletion ptsl/ops/export_session_info_as_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# https://duc.avid.com/showthread.php?t=422971
class ExportSessionInfoAsText(Operation):

@classmethod
def response_body(cls):
return None
5 changes: 2 additions & 3 deletions ptsl/ops/extend_selection_to_target_tracks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from ptsl import PTSL_pb2 as pt

from .operation import Operation


class ExtendSelectionToTargetTracks(Operation):
pass
pass
1 change: 1 addition & 0 deletions ptsl/ops/get_dyamic_properties.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ptsl.ops import Operation


class GetDynamicProperties(Operation):
pass
1 change: 1 addition & 0 deletions ptsl/ops/get_file_location.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ptsl.ops import Operation


class GetFileLocation(Operation):
pass
14 changes: 7 additions & 7 deletions ptsl/ops/get_playback_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from ptsl.ops import Operation


class GetPlaybackMode(Operation):
pass

Expand All @@ -14,13 +15,12 @@ def xform(x):

decoder = json.JSONDecoder()
decoded = decoder.decode(in_json)
if isinstance(['possible_settings'][0],str):
decoded['current_settings'] = [xform(x) for x in decoded['current_settings']]
decoded['possible_settings'] = [xform(x) for x in decoded['possible_settings']]
if isinstance(['possible_settings'][0], str):
decoded['current_settings'] = [
xform(x) for x in decoded['current_settings']]
decoded['possible_settings'] = [
xform(x) for x in decoded['possible_settings']]
encoder = json.JSONEncoder()
encoded = encoder.encode(decoded)

return encoded



return encoded
3 changes: 2 additions & 1 deletion ptsl/ops/get_ptsl_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ptsl.ops import Operation


class GetPTSLVersion(Operation):
pass
pass
1 change: 1 addition & 0 deletions ptsl/ops/get_record_mode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ptsl.ops import Operation


class GetRecordMode(Operation):
pass
3 changes: 2 additions & 1 deletion ptsl/ops/get_session_audio_format.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ptsl.ops import Operation


class GetSessionAudioFormat(Operation):
pass
pass
3 changes: 2 additions & 1 deletion ptsl/ops/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def on_empty_response_body(self):

def on_response_body(self, response_body: R):
"""
The client calls this when the server responds with a JSON `pt.ResponseBody`.
The client calls this when the server responds with a JSON
`pt.ResponseBody`.
"""
self.response = response_body

0 comments on commit d5a0acb

Please sign in to comment.