[Python-checkins] python/dist/src/Lib inspect.py,1.40,1.41
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sun, 19 Jan 2003 05:21:23 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv6102
Modified Files:
inspect.py
Log Message:
SF patch #634557: inspect.BlockFinder didn't do a good enough job finding
the end of code blocks.
Patch contributed by Patrick O'Brien.
Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** inspect.py 14 Jan 2003 02:19:36 -0000 1.40
--- inspect.py 19 Jan 2003 13:21:20 -0000 1.41
***************
*** 502,505 ****
--- 502,507 ----
self.indent = self.indent - 1
if self.indent == 0: raise EndOfBlock, self.last
+ elif type == tokenize.NAME and scol == 0:
+ raise EndOfBlock, self.last
def getblock(lines):