[pywin32-checkins] pywin32/win32/Lib win32serviceutil.py,1.17,1.18
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-05-27 07:12:11
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6320 Modified Files: win32serviceutil.py Log Message: When looking for a service name, allow ERROR_INVALID_NAME. Index: win32serviceutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32serviceutil.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** win32serviceutil.py 11 Apr 2005 00:37:09 -0000 1.17 --- win32serviceutil.py 27 May 2005 07:11:46 -0000 1.18 *************** *** 71,75 **** return win32service.OpenService(hscm, name, access) except win32api.error, details: ! if details[0]!=winerror.ERROR_SERVICE_DOES_NOT_EXIST: raise name = _GetServiceShortName(name) --- 71,76 ---- return win32service.OpenService(hscm, name, access) except win32api.error, details: ! if details[0] not in [winerror.ERROR_SERVICE_DOES_NOT_EXIST, ! winerror.ERROR_INVALID_NAME]: raise name = _GetServiceShortName(name) |