unescape %20 in urls so we don't get false failures with 1.7.0_60

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1575328 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-03-07 17:09:27 +00:00
parent 55edc565d8
commit 36edbb84ea
1 changed files with 6 additions and 1 deletions

View File

@ -212,7 +212,7 @@ def checkClassSummaries(fullPath):
if inThing:
if lineLower.find('</tr>') != -1:
if not hasDesc:
missing.append((lastCaption, lastItem))
missing.append((lastCaption, unEscapeURL(lastItem)))
inThing = False
continue
else:
@ -298,6 +298,11 @@ def checkSummary(fullPath):
f.close()
return anyMissing
def unEscapeURL(s):
# Not exhaustive!!
s = s.replace('%20', ' ')
return s
def unescapeHTML(s):
s = s.replace('&lt;', '<')
s = s.replace('&gt;', '>')