mirror of https://github.com/apache/lucene.git
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:
parent
55edc565d8
commit
36edbb84ea
|
@ -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('<', '<')
|
||||
s = s.replace('>', '>')
|
||||
|
|
Loading…
Reference in New Issue