Skip to content

Commit

Permalink
Replace str by bytes in the midi module
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkid committed Dec 28, 2017
1 parent 8eb6719 commit b63345e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fretwork/midi/MidiFileParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def parseMThdChunk(self):
header_chunk_zise = raw_in.readBew(4)

# check if it is a proper midi file
if header_chunk_type != 'MThd':
if header_chunk_type != b'MThd':
raise TypeError("It is not a valid midi file!")

# Header values are at fixed locations, so no reason to be clever
Expand Down

0 comments on commit b63345e

Please sign in to comment.