[Docstring-checkins] CVS: dps/dps statemachine.py,1.2,1.3
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2001-08-17 01:57:31
|
Update of /cvsroot/docstring/dps/dps In directory usw-pr-cvs1:/tmp/cvs-serv24952/dps/dps Modified Files: statemachine.py Log Message: - Cleaned up & updated. Index: statemachine.py =================================================================== RCS file: /cvsroot/docstring/dps/dps/statemachine.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** statemachine.py 2001/08/11 01:58:15 1.2 --- statemachine.py 2001/08/17 01:57:28 1.3 *************** *** 2,11 **** """ ! Author: David Goodger ! Contact: dgo...@bi... ! Version: 1.2 ! Revision: $Revision$ ! Date: $Date$ ! Copyright: This module has been placed in the public domain. A finite state machine specialized for regular-expression-based text filters, --- 2,11 ---- """ ! :Author: David Goodger ! :Contact: dgo...@bi... ! :Version: 1.3 ! :Revision: $Revision$ ! :Date: $Date$ ! :Copyright: This module has been placed in the public domain. A finite state machine specialized for regular-expression-based text filters, *************** *** 219,223 **** if self.debug: print >>sys.stderr, ('\nStateMachine.run: eof transition') ! results.extend(state.eof(context)) except: self.error() --- 219,224 ---- if self.debug: print >>sys.stderr, ('\nStateMachine.run: eof transition') ! result = state.eof(context) ! results.extend(result) except: self.error() *************** *** 962,968 **** `lines`. """ - #import mypdb - #if mypdb.tracenow: - # mypdb.set_trace() source = [] indent = None --- 963,966 ---- *************** *** 982,986 **** indent = min(indent, lineindent) else: ! blankfinish = 1 # block ends at end of lines if indent: return [s[indent:] for s in source], indent, blankfinish --- 980,984 ---- indent = min(indent, lineindent) else: ! blankfinish = 1 # block ends at end of lines if indent: return [s[indent:] for s in source], indent, blankfinish |