Update of /cvsroot/pywin32/pywin32/win32/Demos/service
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv305/win32/Demos/service
Modified Files:
pipeTestServiceClient.py
Log Message:
various improvements and modernizations from py3k branch.
Index: pipeTestServiceClient.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/service/pipeTestServiceClient.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** pipeTestServiceClient.py 1 Oct 2008 14:44:53 -0000 1.4
--- pipeTestServiceClient.py 23 Oct 2008 07:39:12 -0000 1.5
***************
*** 37,47 ****
retryCount = retryCount + 1
try:
! return apply(fn, args)
! except win32api.error, (rc, fnerr, msg):
! if rc==winerror.ERROR_PIPE_BUSY:
win32api.Sleep(5000)
continue
else:
! raise win32api.error(rc, fnerr, msg)
raise RuntimeError("Could not make a connection to the server")
--- 37,47 ----
retryCount = retryCount + 1
try:
! return fn(*args)
! except win32api.error, exc:
! if exc.winerror==winerror.ERROR_PIPE_BUSY:
win32api.Sleep(5000)
continue
else:
! raise
raise RuntimeError("Could not make a connection to the server")
|