jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/381961 )
Change subject: [bugfix] Bugfixes for the conversion scripts/maintenance/compat2core.py ......................................................................
[bugfix] Bugfixes for the conversion scripts/maintenance/compat2core.py
- remove complete version line - escape dot
Change-Id: I49eabe00fd43461dbbb2297f7c6a88c624ef41ff --- M scripts/maintenance/compat2core.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Huji: Looks good to me, approved jenkins-bot: Verified Zoranzoki21: Looks good to me, but someone else must approve
diff --git a/scripts/maintenance/compat2core.py b/scripts/maintenance/compat2core.py index 161baee..854d224 100755 --- a/scripts/maintenance/compat2core.py +++ b/scripts/maintenance/compat2core.py @@ -42,7 +42,7 @@ # be careful with replacement order! replacements = ( # doc strings - ('#\r?\n__version__', + ('#\r?\n__version__.*\r?\n', '#\n' '# Automatically ported from compat branch by compat2core.py script\n'), ('Pywikipedia bot team', 'Pywikibot team'), @@ -60,7 +60,7 @@ # site instance call (r'pywikibot.getSite\s*(\s*', 'pywikibot.Site('), # lang is different from code. We should use code in core - (r'([Ss])ite.lang(?:uage())?', r'\1ite.code'), + (r'([Ss])ite.lang(?:uage())?', r'\1ite.code'), # change compat library classes to pywikibot intrinsic classes (r'catlib.Category\s*(\s*', 'pywikibot.Category('), (r'catlib.change_category\s*((\s*)(?P<article>.+?),\s*(?P<oldcat>.+?),',