[Spambayes-checkins] spambayes/Outlook2000/dialogs/resources
rcparser.py, 1.2, 1.3
Adam Walker
xenogeist at users.sourceforge.net
Wed Aug 13 13:31:12 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv28122/Outlook2000/dialogs/resources
Modified Files:
rcparser.py
Log Message:
Handle case where dialogs are not grouped together.
Index: rcparser.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/resources/rcparser.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** rcparser.py 10 Aug 2003 07:26:50 -0000 1.2
--- rcparser.py 13 Aug 2003 19:31:10 -0000 1.3
***************
*** 120,126 ****
f = open(rcFileName)
self.open(f)
! while self.token!=None and self.token[0:4]!="IDD_":
! self.getToken()
! while self.token!=None and self.token[0:4]=="IDD_":
self.parse()
self.getToken()
--- 120,125 ----
f = open(rcFileName)
self.open(f)
! self.getToken()
! while self.token!=None:
self.parse()
self.getToken()
***************
*** 131,138 ****
def parse(self):
if self.token == None:
more == None
! elif "LANGUAGE" == self.token:
! more = self.lang()
else:
possibleDlgName = self.token
--- 130,146 ----
def parse(self):
+ deep = 0
if self.token == None:
more == None
! elif "BEGIN" == self.token:
! deep = 1
! while deep!=0:
! self.getToken()
! if "BEGIN" == self.token:
! deep += 1
! elif "END" == self.token:
! deep -= 1
! elif "IDD_" != self.token[:4]:
! self.getToken()
else:
possibleDlgName = self.token
More information about the Spambayes-checkins
mailing list