[Python-checkins] python/nondist/sandbox/sio sio.py,1.2,1.3

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Wed, 09 Apr 2003 18:00:07 -0700


Update of /cvsroot/python/python/nondist/sandbox/sio
In directory sc8-pr-cvs1:/tmp/cvs-serv1321

Modified Files:
	sio.py 
Log Message:
Add class variables mm and fd so that close() and hence __del__() will
work even if __init__() failed.


Index: sio.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/sio/sio.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sio.py	9 Apr 2003 21:46:54 -0000	1.2
--- sio.py	10 Apr 2003 01:00:04 -0000	1.3
***************
*** 299,302 ****
--- 299,304 ----
          self.close()
  
+     mm = fd = None
+ 
      def close(self):
          if self.mm is not None: