Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #39 from marty1885/master
Browse files Browse the repository at this point in the history
fix malfunction signature check
  • Loading branch information
ousttrue committed May 3, 2018
2 parents de4dff4 + 6b34881 commit 9c470d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymeshio/vmd/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def read(ios):

signature=reader.unpack("30s", 30)
version=None
if signature[:25] == "Vocaloid Motion Data 0002":
if signature[:25].decode() == "Vocaloid Motion Data 0002":
version=2
elif signature[:25] == "Vocaloid Motion Data file":
elif signature[:25].decode() == "Vocaloid Motion Data file":
version=1
else:
print("invalid signature", signature)
Expand Down

0 comments on commit 9c470d8

Please sign in to comment.