jenkins-bot has submitted this change and it was merged.

Change subject: Set config.use_mwparserfromhell to True by default
......................................................................


Set config.use_mwparserfromhell to True by default

I've been running with this for a while now, and haven't run
into any issues. It probably won't change anything for most users,
but for those with the library already installed, they'll see
a small performance boost.

Change-Id: Id088a84fa7d69053713cccb4c12995eaff3220ff
---
M pywikibot/config2.py
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Ricordisamoa: Looks good to me, but someone else must approve
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index d83009d..e1549d2 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -621,8 +621,9 @@
 # Settings to enable mwparserfromhell
 # <http://mwparserfromhell.readthedocs.org/en/latest/>
 # Currently used in textlib.extract_templates_and_params
-# This should be more accurate than our current regex, but is currently opt-in.
-use_mwparserfromhell = False
+# This is more accurate than our current regex, but only works
+# if the user has already installed the library.
+use_mwparserfromhell = True
 
 # End of configuration section
 # ============================

-- 
To view, visit https://gerrit.wikimedia.org/r/131329
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id088a84fa7d69053713cccb4c12995eaff3220ff
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to