[pypy-commit] pypy win32-stdlib: revert to 2.7.3 version

mattip noreply at buildbot.pypy.org
Wed Jun 13 22:49:14 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: win32-stdlib
Changeset: r55652:e7a7221475ab
Date: 2012-06-11 21:19 +0300
http://bitbucket.org/pypy/pypy/changeset/e7a7221475ab/

Log:	revert to 2.7.3 version

diff --git a/lib-python/2.7/mailbox.py b/lib-python/2.7/mailbox.py
--- a/lib-python/2.7/mailbox.py
+++ b/lib-python/2.7/mailbox.py
@@ -617,10 +617,6 @@
         """Write any pending changes to disk."""
         if not self._pending:
             return
-        if self._file.closed:
-            self._pending = False
-            return
-        # In order to be writing anything out at all, self._toc must
         # already have been generated (and presumably has been modified
         # by adding or deleting an item).
         assert self._toc is not None
@@ -1818,10 +1814,6 @@
         else:
             self._pos = pos
 
-    def __del__(self):
-        if hasattr(self,'_file'):
-            self.close()
-
     def read(self, size=None):
         """Read bytes."""
         return self._read(size, self._file.read)


More information about the pypy-commit mailing list