[Python-checkins] python/dist/src/Demo/sockets unixserver.py,1.2,1.3

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Fri, 01 Aug 2003 07:20:04 -0700


Update of /cvsroot/python/python/dist/src/Demo/sockets
In directory sc8-pr-cvs1:/tmp/cvs-serv26491

Modified Files:
	unixserver.py 
Log Message:
To be a good citizen, it should really delete its socket when done.


Index: unixserver.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/sockets/unixserver.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** unixserver.py	29 Jan 1998 04:04:04 -0000	1.2
--- unixserver.py	1 Aug 2003 14:20:02 -0000	1.3
***************
*** 1,4 ****
--- 1,5 ----
  # Echo server demo using Unix sockets (handles one connection only)
  # Piet van Oostrum
+ import os
  from socket import *
  FILE = 'blabla'             
***************
*** 14,15 ****
--- 15,17 ----
      conn.send(data)
  conn.close()
+ os.unlink(FILE)