[Python-checkins] CVS: python/dist/src/Lib gzip.py,1.17,1.18
Jeremy Hylton
python-dev@python.org
Mon, 8 May 2000 13:00:03 -0400
- Previous message: [Python-checkins] CVS: python/dist/src/Modules mathmodule.c,2.42,2.43
- Next message: [Python-checkins] CVS: python/dist/src/Lib/lib-stdwin Abstract.py,1.6,NONE BoxParent.py,1.4,NONE Buttons.py,1.10,NONE CSplit.py,1.5,NONE DirList.py,1.7,NONE FormSplit.py,1.4,NONE HVSplit.py,1.6,NONE Histogram.py,1.5,NONE Sliders.py,1.8,NONE Soundogram.py,1.4,NONE Split.py,1.9,NONE StripChart.py,1.7,NONE TextEdit.py,1.7,NONE TransParent.py,1.5,NONE VUMeter.py,1.4,NONE WindowParent.py,1.11,NONE WindowSched.py,1.7,NONE anywin.py,1.2,NONE basewin.py,1.2,NONE dirwin.py,1.5,NONE filewin.py,1.4,NONE formatter.py,1.6,NONE gwin.py,1.6,NONE listwin.py,1.1,NONE mainloop.py,1.7,NONE rect.py,1.4,NONE srcwin.py,1.3,NONE stdwinevents.py,1.4,NONE stdwinq.py,1.1,NONE tablewin.py,1.4,NONE textwin.py,1.3,NONE wdb.py,1.7,NONE wdbframewin.py,1.7,NONE wdbsrcwin.py,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /projects/cvsroot/python/dist/src/Lib
In directory goon.cnri.reston.va.us:/home/jhylton/python/src/Lib
Modified Files:
gzip.py
Log Message:
if the GzipFile constructor fails, the __del__ method is still
called. catch the resulting AttributeError and exit cleanly.
Index: gzip.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/gzip.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** gzip.py 2000/02/04 15:39:29 1.17
--- gzip.py 2000/05/08 16:59:59 1.18
***************
*** 254,260 ****
def __del__(self):
! if (self.myfileobj is not None or
! self.fileobj is not None):
! self.close()
def flush(self):
--- 254,264 ----
def __del__(self):
! try:
! if (self.myfileobj is None and
! self.fileobj is None):
! return
! except AttributeError:
! return
! self.close()
def flush(self):
- Previous message: [Python-checkins] CVS: python/dist/src/Modules mathmodule.c,2.42,2.43
- Next message: [Python-checkins] CVS: python/dist/src/Lib/lib-stdwin Abstract.py,1.6,NONE BoxParent.py,1.4,NONE Buttons.py,1.10,NONE CSplit.py,1.5,NONE DirList.py,1.7,NONE FormSplit.py,1.4,NONE HVSplit.py,1.6,NONE Histogram.py,1.5,NONE Sliders.py,1.8,NONE Soundogram.py,1.4,NONE Split.py,1.9,NONE StripChart.py,1.7,NONE TextEdit.py,1.7,NONE TransParent.py,1.5,NONE VUMeter.py,1.4,NONE WindowParent.py,1.11,NONE WindowSched.py,1.7,NONE anywin.py,1.2,NONE basewin.py,1.2,NONE dirwin.py,1.5,NONE filewin.py,1.4,NONE formatter.py,1.6,NONE gwin.py,1.6,NONE listwin.py,1.1,NONE mainloop.py,1.7,NONE rect.py,1.4,NONE srcwin.py,1.3,NONE stdwinevents.py,1.4,NONE stdwinq.py,1.1,NONE tablewin.py,1.4,NONE textwin.py,1.3,NONE wdb.py,1.7,NONE wdbframewin.py,1.7,NONE wdbsrcwin.py,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]