twoolie / NBT

Python Parser/Writer for the NBT file format, and it's container the RegionFile.
MIT License
362 stars 74 forks source link

What is the 'rb' parameter when loading the NBT file? #120

Open 5HT2 opened 5 years ago

mariomeissner commented 5 years ago

My guess is that their intention was to pass 'rb' as an *args to GZipFile or something for file-loading ("rb" as in "read bytes"), but they don't seem to use it correctly since it actually gets assigned to the buffer parameter instead.

5HT2 commented 5 years ago

Thanks, yea I'm specifically referring to nbt.nbt.NBTFile("level.dat", 'rb')