From 36edbb84ea0431bd27debd3ed6460c4b33f3ec23 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 7 Mar 2014 17:09:27 +0000 Subject: [PATCH] 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 --- dev-tools/scripts/checkJavaDocs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-tools/scripts/checkJavaDocs.py b/dev-tools/scripts/checkJavaDocs.py index e68f6072493..4089a8f15b5 100644 --- a/dev-tools/scripts/checkJavaDocs.py +++ b/dev-tools/scripts/checkJavaDocs.py @@ -212,7 +212,7 @@ def checkClassSummaries(fullPath): if inThing: if lineLower.find('') != -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('>', '>')