[pywin32-checkins] pywin32/Pythonwin/pywin/framework help.py, 1.12.2.1, 1.12.2.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-02 13:06:53
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18675/Pythonwin/pywin/framework Modified Files: Tag: py3k help.py Log Message: fix all 'xxx_todo_changeme' items in py3k branch Index: help.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/help.py,v retrieving revision 1.12.2.1 retrieving revision 1.12.2.2 diff -C2 -d -r1.12.2.1 -r1.12.2.2 *** help.py 29 Aug 2008 06:16:41 -0000 1.12.2.1 --- help.py 2 Oct 2008 13:06:36 -0000 1.12.2.2 *************** *** 74,82 **** try: key = win32api.RegOpenKey(root, regutil.BuildDefaultPythonKey() + "\\Help", 0, win32con.KEY_READ) ! except win32api.error as xxx_todo_changeme: ! (code, fn, details) = xxx_todo_changeme.args import winerror ! if code!=winerror.ERROR_FILE_NOT_FOUND: ! raise win32api.error(code, fn, details) return retList try: --- 74,81 ---- try: key = win32api.RegOpenKey(root, regutil.BuildDefaultPythonKey() + "\\Help", 0, win32con.KEY_READ) ! except win32api.error as exc: import winerror ! if exc.winerror!=winerror.ERROR_FILE_NOT_FOUND: ! raise return retList try: *************** *** 88,96 **** retList.append((helpDesc, helpFile)) keyNo = keyNo + 1 ! except win32api.error as xxx_todo_changeme1: ! (code, fn, desc) = xxx_todo_changeme1.args import winerror ! if code!=winerror.ERROR_NO_MORE_ITEMS: ! raise win32api.error(code, fn, desc) break finally: --- 87,94 ---- retList.append((helpDesc, helpFile)) keyNo = keyNo + 1 ! except win32api.error as exc: import winerror ! if exc.winerror!=winerror.ERROR_NO_MORE_ITEMS: ! raise break finally: |