[pywin32-checkins] pywin32/Pythonwin/pywin/framework help.py,1.6,1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-07-03 03:49:41
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory sc8-pr-cvs1:/tmp/cvs-serv29048 Modified Files: help.py Log Message: Fix warning about badly placed 'global' statement. Index: help.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/help.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** help.py 18 Aug 2000 06:24:02 -0000 1.6 --- help.py 3 Jul 2003 03:49:38 -0000 1.7 *************** *** 17,23 **** def FinalizeHelp(): if htmlhelp_handle is not None: import win32help - global htmlhelp_handle try: #frame = win32ui.GetMainFrame().GetSafeHwnd() --- 17,23 ---- def FinalizeHelp(): + global htmlhelp_handle if htmlhelp_handle is not None: import win32help try: #frame = win32ui.GetMainFrame().GetSafeHwnd() *************** *** 107,112 **** # Load all help files from the registry. if helpIDMap is None: - global helpIDMap helpIDMap = {} cmdID = win32ui.ID_HELP_OTHER --- 107,112 ---- # Load all help files from the registry. + global helpIDMap if helpIDMap is None: helpIDMap = {} cmdID = win32ui.ID_HELP_OTHER |