Not sure we need to leave the commented-out code here. Just the comments about why with isn't used.

For completeness you might consider adding a close() call since the with statement previously handled that.