jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] add_text: Fixed unicode_literals position
......................................................................
[FIX] add_text: Fixed unicode_literals position
In the add_text script, the location of unicode_literals in 1e54a7d6 was added
in the docstring and not the code after it.
Change-Id: Ia23a9abc40c82cc1e1468e902b3812ef347a81c2
(cherry picked from commit edc204252a4eaffcb7dd94e2a3e9dd2551841d80)
---
M scripts/add_text.py
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/add_text.py b/scripts/add_text.py
index b4b6532..b749256 100755
--- a/scripts/add_text.py
+++ b/scripts/add_text.py
@@ -41,7 +41,6 @@
# This is a script to add a template to the top of the pages with
# category:catname
# Warning! Put it in one line, otherwise it won't work correctly.
-from __future__ import unicode_literals
python add_text.py -cat:catname -summary:"Bot: Adding a template"
-text:"{{Something}}" -except:"\{\{([Tt]emplate:|)[Ss]omething" -up
@@ -69,6 +68,8 @@
#
# Distributed under the terms of the MIT license.
#
+from __future__ import unicode_literals
+
__version__ = '$Id$'
#
--
To view, visit
https://gerrit.wikimedia.org/r/242515
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia23a9abc40c82cc1e1468e902b3812ef347a81c2
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>