[pywin32-checkins] pywin32/win32/Lib regcheck.py, 1.6, 1.7 regutil.py, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-01 14:45:09
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21342/win32/Lib Modified Files: regcheck.py regutil.py Log Message: Move to 'new style' exception raising. Index: regutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/regutil.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** regutil.py 8 Jan 2002 05:41:13 -0000 1.3 --- regutil.py 1 Oct 2008 14:44:53 -0000 1.4 *************** *** 38,42 **** typeId = win32con.REG_DWORD else: ! raise TypeError, "Value must be string or integer - was passed " + str(value) win32api.RegSetValue(rootkey, subKey, typeId ,value) --- 38,42 ---- typeId = win32con.REG_DWORD else: ! raise TypeError("Value must be string or integer - was passed " + str(value)) win32api.RegSetValue(rootkey, subKey, typeId ,value) *************** *** 73,77 **** # Note - Dont work on win32s (but we dont care anymore!) if exeAppPath: ! raise error, "Do not support exeAppPath argument currently" if exeAlias is None: exeAlias = os.path.basename(exeFullPath) --- 73,77 ---- # Note - Dont work on win32s (but we dont care anymore!) if exeAppPath: ! raise error("Do not support exeAppPath argument currently") if exeAlias is None: exeAlias = os.path.basename(exeFullPath) *************** *** 91,95 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, desc) return --- 91,95 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, desc) return *************** *** 110,114 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, desc) return --- 110,114 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, desc) return *************** *** 123,127 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, details) return None --- 123,127 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, details) return None *************** *** 155,159 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, desc) def GetRegisteredHelpFile(helpDesc): --- 155,159 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, desc) def GetRegisteredHelpFile(helpDesc): *************** *** 185,189 **** if bCheckFile: os.stat(fullHelpFile) except os.error: ! raise ValueError, "Help file does not exist" # Now register with Python itself. win32api.RegSetValue(GetRootKey(), --- 185,189 ---- if bCheckFile: os.stat(fullHelpFile) except os.error: ! raise ValueError("Help file does not exist") # Now register with Python itself. win32api.RegSetValue(GetRootKey(), *************** *** 203,207 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, desc) finally: win32api.RegCloseKey(key) --- 203,207 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, desc) finally: win32api.RegCloseKey(key) *************** *** 215,219 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, desc) def RegisterCoreDLL(coredllName = None): --- 215,219 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, desc) def RegisterCoreDLL(coredllName = None): Index: regcheck.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/regcheck.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** regcheck.py 19 May 2008 13:30:38 -0000 1.6 --- regcheck.py 1 Oct 2008 14:44:53 -0000 1.7 *************** *** 70,74 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, details) return --- 70,74 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, details) return *************** *** 90,94 **** import winerror if code!=winerror.ERROR_NO_MORE_ITEMS: ! raise win32api.error, (code, fn, desc) break finally: --- 90,94 ---- import winerror if code!=winerror.ERROR_NO_MORE_ITEMS: ! raise win32api.error(code, fn, desc) break finally: *************** *** 104,108 **** import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error, (code, fn, details) return --- 104,108 ---- import winerror if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, details) return |