Source

pypy / lib-python / 2.7 / distutils / command / bdist_wininst.py

Diff from to

File lib-python/2.7/distutils/command/bdist_wininst.py

                              bitmaplen,        # number of bytes in bitmap
                              )
         file.write(header)
-        file.write(open(arcname, "rb").read())
+        with open(arcname, "rb") as arcfile:
+            file.write(arcfile.read())
 
     # create_exe()