Skip to content

Commit

Permalink
Ran a ruff format file_helper.py
Browse files Browse the repository at this point in the history
To pass CI checks of-course :)
  • Loading branch information
spacetimeengineer committed Sep 11, 2024
1 parent 35501fb commit 11ed94a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pbp/file_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def _get_sound_filename(self) -> Optional[str]:
else:
sound_filename = path

if os.name == 'nt':
return self.parsed_uri.netloc+self.parsed_uri.path
if os.name == "nt":
return self.parsed_uri.netloc + self.parsed_uri.path
else:
return sound_filename

Expand Down Expand Up @@ -356,7 +356,7 @@ def _get_json(self, uri: str) -> Optional[str]:
if parsed_uri.scheme == "s3":
return self._get_json_s3(parsed_uri)
# simply assume local file:
if os.name == 'nt':
if os.name == "nt":
return self._get_json_local(uri)
else:
return self._get_json_local(parsed_uri.path)
Expand Down

0 comments on commit 11ed94a

Please sign in to comment.