Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11648/pywin/tools
Modified Files:
browser.py
Log Message:
Replace regsub with re
Index: browser.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/browser.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** browser.py 4 Jun 2000 06:09:20 -0000 1.4
--- browser.py 7 Feb 2004 02:06:57 -0000 1.5
***************
*** 294,298 ****
dialog.Dialog.__init__(self, win32ui.IDD_LARGE_EDIT)
def OnInitDialog(self):
! import regsub
self.SetWindowText(self.title)
self.edit = self.GetDlgItem(win32ui.IDC_EDIT1)
--- 294,298 ----
dialog.Dialog.__init__(self, win32ui.IDD_LARGE_EDIT)
def OnInitDialog(self):
! import re
self.SetWindowText(self.title)
self.edit = self.GetDlgItem(win32ui.IDC_EDIT1)
***************
*** 303,307 ****
strval = "Exception getting object value\n\n%s:%s" % (t, v)
tb = None
! strval = regsub.gsub('\n','\r\n', strval)
self.edit.ReplaceSel(strval)
--- 303,307 ----
strval = "Exception getting object value\n\n%s:%s" % (t, v)
tb = None
! strval = re.sub('\n','\r\n', strval)
self.edit.ReplaceSel(strval)
|