Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11648/pywin/framework
Modified Files:
dlgappcore.py toolmenu.py
Log Message:
Replace regsub with re
Index: dlgappcore.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/dlgappcore.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** dlgappcore.py 1 Sep 1999 23:33:45 -0000 1.1
--- dlgappcore.py 7 Feb 2004 02:06:56 -0000 1.2
***************
*** 9,13 ****
import sys
from pywin.mfc import dialog
- import regsub
error = "Dialog Application Error"
--- 9,12 ----
Index: toolmenu.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/toolmenu.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** toolmenu.py 1 Mar 2000 23:45:47 -0000 1.2
--- toolmenu.py 7 Feb 2004 02:06:56 -0000 1.3
***************
*** 87,95 ****
def HandleToolCommand(cmd, code):
import traceback
! import regsub
global tools
(menuString, pyCmd, desc) = tools[cmd]
win32ui.SetStatusText("Executing tool %s" % desc, 1)
! pyCmd = regsub.gsub('\\\\n','\n', pyCmd)
win32ui.DoWaitCursor(1)
oldFlag = None
--- 87,95 ----
def HandleToolCommand(cmd, code):
import traceback
! import re
global tools
(menuString, pyCmd, desc) = tools[cmd]
win32ui.SetStatusText("Executing tool %s" % desc, 1)
! pyCmd = re.sub('\\\\n','\n', pyCmd)
win32ui.DoWaitCursor(1)
oldFlag = None
|