From: <pj...@us...> - 2009-05-23 01:23:40
|
Revision: 6364 http://jython.svn.sourceforge.net/jython/?rev=6364&view=rev Author: pjenvey Date: 2009-05-23 01:23:24 +0000 (Sat, 23 May 2009) Log Message: ----------- handle failed __init__s Modified Paths: -------------- trunk/jython/Lib/popen2.py Modified: trunk/jython/Lib/popen2.py =================================================================== --- trunk/jython/Lib/popen2.py 2009-05-22 02:41:04 UTC (rev 6363) +++ trunk/jython/Lib/popen2.py 2009-05-23 01:23:24 UTC (rev 6364) @@ -47,7 +47,10 @@ self.childerr = self._popen.stderr def __del__(self): - self._popen.__del__() + # XXX: Should let _popen __del__ on its own, but it's a new + # style class: http://bugs.jython.org/issue1057 + if hasattr(self, '_popen'): + self._popen.__del__() def poll(self, _deadstate=None): """Return the exit status of the child process if it has finished, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |