jenkins-bot has submitted this change and it was merged.
Change subject: scripts: add missing /usr/bin/python shebang ......................................................................
scripts: add missing /usr/bin/python shebang
A few scripts are missing the '#!/usr/bin/python'.
Change-Id: I59059c3092dd3e6c400870bb1ca4f0313985b532 --- M scripts/catall.py M scripts/cfd.py M scripts/create_categories.py M scripts/delete.py M scripts/image.py M scripts/imagerecat.py M scripts/imagetransfer.py M scripts/listpages.py M scripts/maintenance/cache.py M scripts/maintenance/make_i18n_dict.py M scripts/maintenance/wikimedia_sites.py M scripts/makecat.py M scripts/misspelling.py M scripts/protect.py M scripts/reflinks.py M scripts/watchlist.py M scripts/weblinkchecker.py M scripts/welcome.py 18 files changed, 18 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/catall.py b/scripts/catall.py index c70ece8..9fd468c 100755 --- a/scripts/catall.py +++ b/scripts/catall.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This script shows the categories on each page and lets you change them. diff --git a/scripts/cfd.py b/scripts/cfd.py index 16d5c24..0922e32 100644 --- a/scripts/cfd.py +++ b/scripts/cfd.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This script processes the Categories for discussion working page. diff --git a/scripts/create_categories.py b/scripts/create_categories.py index ba5ab06..ac6f4e4 100755 --- a/scripts/create_categories.py +++ b/scripts/create_categories.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ Program to batch create categories. diff --git a/scripts/delete.py b/scripts/delete.py index 2b0ed2a..ed27a1e 100644 --- a/scripts/delete.py +++ b/scripts/delete.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This script can be used to delete and undelete pages en masse. diff --git a/scripts/image.py b/scripts/image.py index c66c586..512e863 100644 --- a/scripts/image.py +++ b/scripts/image.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This script can be used to change one image to another or remove an image. diff --git a/scripts/imagerecat.py b/scripts/imagerecat.py index 73a60b3..d0e08d2 100644 --- a/scripts/imagerecat.py +++ b/scripts/imagerecat.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ Program to (re)categorize images at commons. diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py index 9592c60..1761790 100644 --- a/scripts/imagetransfer.py +++ b/scripts/imagetransfer.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ Script to copy images to Wikimedia Commons, or to another wiki. diff --git a/scripts/listpages.py b/scripts/listpages.py index 6c64157..c89be5a 100644 --- a/scripts/listpages.py +++ b/scripts/listpages.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- r""" Print a list of pages, as defined by page generator parameters. diff --git a/scripts/maintenance/cache.py b/scripts/maintenance/cache.py index 4a0d1d2..f05e9fd 100644 --- a/scripts/maintenance/cache.py +++ b/scripts/maintenance/cache.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- r""" This script runs commands on each entry in the API caches. diff --git a/scripts/maintenance/make_i18n_dict.py b/scripts/maintenance/make_i18n_dict.py index c685618..bb6155f 100644 --- a/scripts/maintenance/make_i18n_dict.py +++ b/scripts/maintenance/make_i18n_dict.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ Generate a i18n file from a given script. diff --git a/scripts/maintenance/wikimedia_sites.py b/scripts/maintenance/wikimedia_sites.py index 57b7e5e..ccd2417 100644 --- a/scripts/maintenance/wikimedia_sites.py +++ b/scripts/maintenance/wikimedia_sites.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """Script that updates the language lists in Wikimedia family files.""" # diff --git a/scripts/makecat.py b/scripts/makecat.py index e1ca9b3..b2885f5 100644 --- a/scripts/makecat.py +++ b/scripts/makecat.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: UTF-8 -*- """ This bot takes as its argument the name of a new or existing category. diff --git a/scripts/misspelling.py b/scripts/misspelling.py index e0d7b36..6285bb2 100644 --- a/scripts/misspelling.py +++ b/scripts/misspelling.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This script fixes links that contain common spelling mistakes. diff --git a/scripts/protect.py b/scripts/protect.py index 47b5bb2..ad8a147 100644 --- a/scripts/protect.py +++ b/scripts/protect.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This script can be used to protect and unprotect pages en masse. diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 79fbbd7..41f8fc9 100644 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ Fetch and add titles for bare links in references. diff --git a/scripts/watchlist.py b/scripts/watchlist.py index 447858a..62770b4 100755 --- a/scripts/watchlist.py +++ b/scripts/watchlist.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ Allows access to the bot account's watchlist. diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py index 9faf7f9..175b8a2 100644 --- a/scripts/weblinkchecker.py +++ b/scripts/weblinkchecker.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- """ This bot is used for checking external links found at the wiki. diff --git a/scripts/welcome.py b/scripts/welcome.py index 16403be..65d0e67 100644 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # -*- coding: utf-8 -*- u""" Script to welcome new users.
pywikibot-commits@lists.wikimedia.org