jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323992?usp=email )

Change subject: replace: Return MySQL regex directly
......................................................................

replace: Return MySQL regex directly

Remove the temporary assignment before returning the escaped MySQL regex.

Change-Id: I0ecafe88be9693e74095125c1e980c089ed3fa99
---
M scripts/replace.py
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified
  JJMC89: Looks good to me, approved




diff --git a/scripts/replace.py b/scripts/replace.py
index bbf2f27..02da024 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -800,8 +800,7 @@
     pattern = pattern.replace(r'\s', '[:space:]')
     pattern = pattern.replace(r'\d', '[:digit:]')
     pattern = pattern.replace(r'\w', '[:alnum:]')
-    pattern = pattern.replace("'", '\\' + "'")
-    return pattern
+    return pattern.replace("'", '\\' + "'")


 EXC_KEYS = {

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323992?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0ecafe88be9693e74095125c1e980c089ed3fa99
Gerrit-Change-Number: 1323992
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to