Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/app
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22506/Pythonwin/pywin/Demos/app
Modified Files:
basictimerapp.py dlgappdemo.py
Log Message:
Remove obsolete regsub module
Index: dlgappdemo.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/app/dlgappdemo.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** dlgappdemo.py 1 Sep 1999 23:33:39 -0000 1.1
--- dlgappdemo.py 10 Dec 2006 21:51:10 -0000 1.2
***************
*** 10,14 ****
import win32ui
import sys
- import regsub
class TestDialogApp(dlgappcore.DialogApp):
--- 10,13 ----
***************
*** 37,41 ****
self.edit.SetSel(-2)
# translate \n to \n\r
! self.edit.ReplaceSel(regsub.gsub('\n','\r\n',str))
else:
win32ui.OutputDebug("dlgapp - no edit control! >>\n%s\n<<\n" % str )
--- 36,40 ----
self.edit.SetSel(-2)
# translate \n to \n\r
! self.edit.ReplaceSel(str.replace('\n','\r\n'))
else:
win32ui.OutputDebug("dlgapp - no edit control! >>\n%s\n<<\n" % str )
Index: basictimerapp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/app/basictimerapp.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** basictimerapp.py 4 Jun 2000 06:19:32 -0000 1.2
--- basictimerapp.py 10 Dec 2006 21:51:10 -0000 1.3
***************
*** 10,14 ****
import time
import string
- import regsub
class TimerAppDialog(dlgappcore.AppDialog):
--- 10,13 ----
***************
*** 38,42 ****
self.doWork = win32ui.GetProfileVal(self.timerAppName, "Work", "DoDemoWork()")
# replace "\n" with real \n.
! self.doWork = regsub.gsub('\\\\n','\n', self.doWork)
dlgappcore.AppDialog.OnInitDialog(self)
--- 37,41 ----
self.doWork = win32ui.GetProfileVal(self.timerAppName, "Work", "DoDemoWork()")
# replace "\n" with real \n.
! self.doWork = self.doWork.replace('\\n','\n')
dlgappcore.AppDialog.OnInitDialog(self)
|