don't parse incomplete ctor specification

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-08-28 02:32:51 +00:00
parent 2ea9eec086
commit b4ca62c640
1 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,7 @@ reMarkup = re.compile('<.*?>')
reDivBlock = re.compile('<div class="block">(.*?)</div>', re.IGNORECASE)
reCaption = re.compile('<caption><span>(.*?)</span>', re.IGNORECASE)
reTDLast = re.compile('<td class="colLast">.*<a href=".*#(.*?)">', re.IGNORECASE)
reColOne = re.compile('<td class="colOne">(.*?)</td>', re.IGNORECASE)
reColOne = re.compile('<td class="colOne">.*<a href=".*#(.*?)">', re.IGNORECASE)
def cleanHTML(s):
s = reMarkup.sub('', s)
@ -60,8 +60,7 @@ def checkClass(fullPath):
else:
m = reColOne.search(line)
if m is not None:
# TODO: this will only get the first line of multi-line things:
lastItem = cleanHTML(m.group(1))
lastItem = m.group(1)
#print(' item %s' % lastItem)
lineLower = line.strip().lower()