[Docstring-checkins] CVS: dps/dps statemachine.py,1.1.1.1,1.2
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2001-08-11 01:58:18
|
Update of /cvsroot/docstring/dps/dps In directory usw-pr-cvs1:/tmp/cvs-serv32354/dps/dps Modified Files: statemachine.py Log Message: - Fixed bug in StateMachineWS.getknownindented() that caused it to return a list containing one empty string. Index: statemachine.py =================================================================== RCS file: /cvsroot/docstring/dps/dps/statemachine.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** statemachine.py 2001/07/22 22:36:03 1.1.1.1 --- statemachine.py 2001/08/11 01:58:15 1.2 *************** *** 725,729 **** """ offset = self.abslineoffset() ! indented = [self.line[indent:]] for line in self.inputlines[self.lineoffset + 1:]: if line[:indent].strip(): --- 725,732 ---- """ offset = self.abslineoffset() ! if self.line[indent:]: ! indented = [self.line[indent:]] ! else: ! indented = [] for line in self.inputlines[self.lineoffset + 1:]: if line[:indent].strip(): *************** *** 733,737 **** else: blankfinish = 1 ! self.nextline(len(indented) - 1) # advance to last indented line while indented and not indented[-1].strip(): indented.pop() --- 736,741 ---- else: blankfinish = 1 ! if indented: ! self.nextline(len(indented) - 1) # advance to last indented line while indented and not indented[-1].strip(): indented.pop() |