Alex S.H. Lin has submitted this change and it was merged.
Change subject: [BUGFIX] Fix for ProcessTitle() and ReplaceLink() ......................................................................
[BUGFIX] Fix for ProcessTitle() and ReplaceLink()
- mightBeLoc must be migtBeLcl in ProcessTitle() - fix for list comprehensive variable d --> s
Change-Id: I98f0bcbaff8c48854379a672a7ddc752b133dad0 --- M casechecker.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Alex S.H. Lin: Verified; Looks good to me, approved
diff --git a/casechecker.py b/casechecker.py index 100d33c..773f090 100644 --- a/casechecker.py +++ b/casechecker.py @@ -566,7 +566,7 @@ if badWord in self.alwaysInLocal: mightBeLat = False elif badWord in self.alwaysInLatin: - mightBeLoc = False + mightBeLcl = False
if mightBeLcl: mapLcl[badWord] = badWord.translate(self.latToLclDict) @@ -819,7 +819,7 @@ def ReplaceLink(self, text, oldtxt, newtxt):
frmParts = [s.strip(self.stripChars) - for d in self.wordBreaker.split(oldtxt)] + for s in self.wordBreaker.split(oldtxt)] toParts = [s.strip(self.stripChars) for s in self.wordBreaker.split(newtxt)]
pywikibot-commits@lists.wikimedia.org