liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.46k stars 221 forks source link

changed to always use a context manager #29

Closed hiaselhans closed 9 years ago

hiaselhans commented 9 years ago

I know this is a bit superflous on a script that executes once and exits, but for the i couldnt resist to, as some files werent closed...

liftoff commented 9 years ago

Yeah, I had "change to use io.open to make python 2/3 compatibility more straightforward" in my TODO list since forever. Thanks for this.