Skip to content

Commit

Permalink
Fix errors with Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
soopercool101 committed Mar 6, 2024
1 parent 0077cae commit bd5afb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Loaders/Parsers/Example Parser (RFNT).py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "soopercool101 and Sammi Husky"
__version__ = "2.0.0"
__version__ = "3.0.0"

from BrawlCrate.API import *
from BrawlLib.SSBB.ResourceNodes import *
Expand All @@ -23,10 +23,10 @@ def TryParse(self, stream):
if stream.Length < 4:
return None

src = file(stream)
src.seek(0,0)
src = open(stream)
src.seek(0)
tag = ""
tag = tag.join(struct.unpack('>4s', src.read(4)))
tag = src.read(4).decode(encoding='utf-8', errors='ignore')

# If the tag matches, return an instance of our class
if tag == "RFNT": #RFNT
Expand Down

0 comments on commit bd5afb7

Please sign in to comment.