Skip to content

Commit

Permalink
Format code with black (bot)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoskary committed Sep 13, 2023
1 parent d453266 commit dd5b2ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions partitura/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_score(filename: PathLike, force_note_ids="keep") -> Score:
scr: :class:`partitura.score.Score`
A score instance.
"""

extension = os.path.splitext(filename)[-1].lower()
if extension in (".mxl", ".xml", ".musicxml"):
# Load MusicXML
Expand Down Expand Up @@ -95,7 +95,9 @@ def load_score(filename: PathLike, force_note_ids="keep") -> Score:
)
return score
else:
raise NotSupportedFormatError(f"{extension} file extension is not supported. If this should be supported, consider editing partitura/io/__init__.py file")
raise NotSupportedFormatError(
f"{extension} file extension is not supported. If this should be supported, consider editing partitura/io/__init__.py file"
)


def load_score_as_part(filename: PathLike) -> Part:
Expand Down

0 comments on commit dd5b2ff

Please sign in to comment.