eagleflo / mpyq

Python library for reading MPQ archives.
BSD 2-Clause "Simplified" License
99 stars 23 forks source link

Allow decompress (by force) #12

Closed GraylinKim closed 12 years ago

GraylinKim commented 12 years ago

I had a recent request to accept file objects which wasn't introduced into mpyq until version 0.1.7. This is an attempt at a clean solution to the issues raised in Issue#7 which will allow sc2reader to float back to the latest version of mpyq instead of anchoring at 0.1.5 (like we currently do) or forking (which we don't want to do).

My idea is to allow decompress by force on read_file for when you "know what you are doing". This will allow us, and anyone else to handle tampered files as discussed in the issue.

Let me know what you think.

eagleflo commented 12 years ago

Seems like a pragmatic approach. Pulled.

eagleflo commented 12 years ago

I'll release v0.1.9 which includes this patch shortly.

GraylinKim commented 12 years ago

Thanks once again for the timely resolution.