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$' #
pywikibot-commits@lists.wikimedia.org