jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657818 )
Change subject: Removed remove magic coding comments # -*- coding: utf-8 -*-
......................................................................
Removed remove magic coding comments # -*- coding: utf-8 -*-
Bug: T270946
Change-Id: Ie680a3ef658aa38e551a804b3aa4f85356d3adc0
---
M pywikibot/pagegenerators.py
M pywikibot/plural.py
M pywikibot/proofreadpage.py
M pywikibot/site/_basesite.py
M pywikibot/site/_decorators.py
M pywikibot/site/_namespace.py
M pywikibot/site/_siteinfo.py
M pywikibot/site/_tokenwallet.py
M pywikibot/site_detect.py
M pywikibot/specialbots/__init__.py
M pywikibot/specialbots/_unlink.py
M pywikibot/specialbots/_upload.py
M pywikibot/textlib.py
M pywikibot/throttle.py
M pywikibot/titletranslate.py
M pywikibot/tools/__init__.py
M pywikibot/tools/_logging.py
M pywikibot/tools/_unidata.py
M pywikibot/tools/chars.py
M pywikibot/tools/djvu.py
M pywikibot/tools/formatter.py
M pywikibot/userinterfaces/__init__.py
M pywikibot/userinterfaces/gui.py
M pywikibot/userinterfaces/terminal_interface.py
M pywikibot/userinterfaces/terminal_interface_base.py
M pywikibot/userinterfaces/terminal_interface_unix.py
M pywikibot/userinterfaces/terminal_interface_win32.py
M pywikibot/userinterfaces/transliteration.py
M pywikibot/userinterfaces/win32_unicode.py
M pywikibot/version.py
M pywikibot/xmlreader.py
M scripts/__init__.py
M scripts/add_text.py
M scripts/archive/__init__.py
M scripts/archive/cfd.py
M scripts/archive/featured.py
M scripts/archivebot.py
M scripts/basic.py
M scripts/blockpageschecker.py
M scripts/capitalize_redirects.py
M scripts/casechecker.py
M scripts/catall.py
M scripts/category_redirect.py
M scripts/change_pagelang.py
M scripts/checkimages.py
M scripts/claimit.py
M scripts/clean_sandbox.py
M scripts/commons_link.py
M scripts/commonscat.py
M scripts/coordinate_import.py
M scripts/cosmetic_changes.py
M scripts/create_categories.py
M scripts/data_ingestion.py
M scripts/delete.py
M scripts/disambredir.py
M scripts/djvutext.py
M scripts/editarticle.py
M scripts/fixing_redirects.py
M scripts/flickrripper.py
M scripts/followlive.py
M scripts/freebasemappingupload.py
M scripts/harvest_template.py
M scripts/illustrate_wikidata.py
M scripts/image.py
M scripts/imagecopy.py
M scripts/imagecopy_self.py
M scripts/imageharvest.py
M scripts/imagerecat.py
M scripts/imagetransfer.py
M scripts/imageuncat.py
M scripts/interwiki.py
M scripts/interwikidata.py
M scripts/isbn.py
M scripts/listpages.py
M scripts/login.py
M scripts/lonelypages.py
M scripts/maintenance/__init__.py
M scripts/maintenance/cache.py
M scripts/maintenance/colors.py
M scripts/maintenance/compat2core.py
M scripts/maintenance/interwikidumps.py
M scripts/maintenance/make_i18n_dict.py
M scripts/maintenance/sorting_order.py
M scripts/maintenance/update_linktrails.py
M scripts/maintenance/wikimedia_sites.py
M scripts/makecat.py
M scripts/match_images.py
M scripts/misspelling.py
M scripts/movepages.py
M scripts/ndashredir.py
M scripts/newitem.py
M scripts/noreferences.py
M scripts/nowcommons.py
M scripts/pagefromfile.py
M scripts/parser_function_count.py
M scripts/patrol.py
M scripts/piper.py
M scripts/protect.py
M scripts/reflinks.py
M scripts/replace.py
M scripts/replicate_wiki.py
M scripts/revertbot.py
M scripts/selflink.py
M scripts/shell.py
M scripts/solve_disambiguation.py
M scripts/spamremove.py
M scripts/speedy_delete.py
M scripts/standardize_interwiki.py
M scripts/states_redirect.py
M scripts/surnames_redirects.py
M scripts/table2wiki.py
M scripts/template.py
M scripts/templatecount.py
M scripts/touch.py
M scripts/transferbot.py
M scripts/unlink.py
M scripts/unusedfiles.py
M scripts/upload.py
M scripts/userscripts/__init__.py
M scripts/version.py
M scripts/watchlist.py
M scripts/weblinkchecker.py
M scripts/wikisourcetext.py
M tests/add_text_tests.py
M tests/archivebot_tests.py
M tests/basepage.py
M tests/basesite_tests.py
M tests/bot_tests.py
M tests/cache_tests.py
M tests/category_bot_tests.py
M tests/category_tests.py
M tests/checkimages_tests.py
M tests/compat2core_tests.py
M tests/conftest.py
M tests/cosmetic_changes_tests.py
M tests/data/fixes.py
M tests/data/set-fixes.py
M tests/data_ingestion_tests.py
M tests/date_tests.py
M tests/deletionbot_tests.py
M tests/deprecation_tests.py
M tests/diff_tests.py
M tests/disambredir_tests.py
M tests/djvu_tests.py
M tests/dry_api_tests.py
M tests/dry_site_tests.py
M tests/echo_tests.py
M tests/edit_failure_tests.py
M tests/edit_tests.py
M tests/eventstreams_tests.py
M tests/family_tests.py
M tests/file_tests.py
M tests/fixes_tests.py
M tests/fixing_redirects_tests.py
M tests/flow_edit_tests.py
M tests/flow_tests.py
M tests/flow_thanks_tests.py
M tests/generate_family_file_tests.py
M tests/generate_user_files_tests.py
M tests/http_tests.py
M tests/i18n/__init__.py
M tests/i18n/pywikibot.py
M tests/i18n_tests.py
M tests/imagecopy_tests.py
M tests/interwiki_graph_tests.py
M tests/interwiki_link_tests.py
M tests/interwikidata_tests.py
M tests/isbn_tests.py
M tests/l10n_tests.py
M tests/login_tests.py
M tests/mediawikiversion_tests.py
M tests/namespace_tests.py
M tests/noreferences_tests.py
M tests/oauth_tests.py
M tests/paraminfo_tests.py
M tests/patrolbot_tests.py
M tests/plural_tests.py
M tests/proofreadpage_tests.py
M tests/protectbot_tests.py
M tests/pwb/__init__.py
M tests/pwb/print_env.py
M tests/pwb/print_locals.py
M tests/pwb/print_unicode.py
M tests/pwb_tests.py
M tests/redirect_bot_tests.py
M tests/reflinks_tests.py
M tests/replacebot_tests.py
M tests/script_tests.py
M tests/site_decorators_tests.py
M tests/site_detect_tests.py
M tests/siteinfo_tests.py
M tests/sparql_tests.py
M tests/template_bot_tests.py
M tests/tests_tests.py
M tests/textlib_tests.py
M tests/thanks_tests.py
M tests/thread_tests.py
M tests/timestamp_tests.py
M tests/timestripper_tests.py
M tests/tk_tests.py
M tests/token_tests.py
M tests/tools_chars_tests.py
M tests/tools_formatter_tests.py
M tests/tools_ip_tests.py
M tests/tools_tests.py
M tests/ui_options_tests.py
M tests/upload_tests.py
M tests/uploadbot_tests.py
M tests/uploadscript_tests.py
M tests/user_tests.py
M tests/weblinkchecker_tests.py
M tests/wikibase_edit_tests.py
M tests/wikistats_tests.py
M tests/xmlreader_tests.py
M user-config.py.sample
M user-fixes.py.sample
216 files changed, 0 insertions(+), 220 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index b2b9a22..22121ec 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
This module offers a wide variety of page generators.
diff --git a/pywikibot/plural.py b/pywikibot/plural.py
index 515c916..6618df4 100644
--- a/pywikibot/plural.py
+++ b/pywikibot/plural.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Module containing plural rules of various languages."""
#
# (C) Pywikibot team, 2011-2020
diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py
index 3cb72bd..80334c2 100644
--- a/pywikibot/proofreadpage.py
+++ b/pywikibot/proofreadpage.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Objects used with ProofreadPage Extension.
diff --git a/pywikibot/site/_basesite.py b/pywikibot/site/_basesite.py
index ce95c52..4cf3f43 100644
--- a/pywikibot/site/_basesite.py
+++ b/pywikibot/site/_basesite.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Objects with site methods independent of the communication
interface."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/site/_decorators.py b/pywikibot/site/_decorators.py
index 8085beb..9913b13 100644
--- a/pywikibot/site/_decorators.py
+++ b/pywikibot/site/_decorators.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Decorators used by site models."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/site/_namespace.py b/pywikibot/site/_namespace.py
index ec95ca5..cbd7590 100644
--- a/pywikibot/site/_namespace.py
+++ b/pywikibot/site/_namespace.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Objects representing Namespaces of MediaWiki site."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/site/_siteinfo.py b/pywikibot/site/_siteinfo.py
index 0dad9a0..9ca6144 100644
--- a/pywikibot/site/_siteinfo.py
+++ b/pywikibot/site/_siteinfo.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Objects representing site info data contents."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/site/_tokenwallet.py b/pywikibot/site/_tokenwallet.py
index b161b29..6c603eb 100644
--- a/pywikibot/site/_tokenwallet.py
+++ b/pywikibot/site/_tokenwallet.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Objects representing api tokens."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/site_detect.py b/pywikibot/site_detect.py
index 167468d..0093615 100644
--- a/pywikibot/site_detect.py
+++ b/pywikibot/site_detect.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Classes for detecting a MediaWiki site."""
#
# (C) Pywikibot team, 2010-2020
diff --git a/pywikibot/specialbots/__init__.py b/pywikibot/specialbots/__init__.py
index fb232dc..e049a28 100644
--- a/pywikibot/specialbots/__init__.py
+++ b/pywikibot/specialbots/__init__.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Module containing special bots reusable by scripts."""
#
# (C) Pywikibot team, 2020
diff --git a/pywikibot/specialbots/_unlink.py b/pywikibot/specialbots/_unlink.py
index b7e0732..c6c47d5 100644
--- a/pywikibot/specialbots/_unlink.py
+++ b/pywikibot/specialbots/_unlink.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Special bot library containing BaseUnlinkBot.
Do not import classes directly from here but from specialbots.
diff --git a/pywikibot/specialbots/_upload.py b/pywikibot/specialbots/_upload.py
index 77c7936..eebf405 100644
--- a/pywikibot/specialbots/_upload.py
+++ b/pywikibot/specialbots/_upload.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Special bot library containing UploadRobot.
Do not import classes directly from here but from specialbots.
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 6129681..dc47927 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Functions for manipulating wiki-text.
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py
index a11f992..7b65633 100644
--- a/pywikibot/throttle.py
+++ b/pywikibot/throttle.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Mechanics to slow down wiki read and/or write rate."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/titletranslate.py b/pywikibot/titletranslate.py
index 5b02c2d..e042929 100644
--- a/pywikibot/titletranslate.py
+++ b/pywikibot/titletranslate.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Title translate module."""
#
# (C) Pywikibot team, 2003-2020
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 16233cb..fc34c73 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Miscellaneous helper functions (not wiki-dependent)."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/pywikibot/tools/_logging.py b/pywikibot/tools/_logging.py
index 3c42d14..c6890aa 100644
--- a/pywikibot/tools/_logging.py
+++ b/pywikibot/tools/_logging.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Logging tools."""
#
# (C) Pywikibot team, 2009-2020
diff --git a/pywikibot/tools/_unidata.py b/pywikibot/tools/_unidata.py
index ec9e4bb..a796721 100644
--- a/pywikibot/tools/_unidata.py
+++ b/pywikibot/tools/_unidata.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Helper function which holds data from unicodedata
library."""
#
# (C) Pywikibot team, 2018-2020
diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py
index 5d5ba35..adc93cf 100644
--- a/pywikibot/tools/chars.py
+++ b/pywikibot/tools/chars.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Character based helper functions (not
wiki-dependent)."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/pywikibot/tools/djvu.py b/pywikibot/tools/djvu.py
index f0f425b..34713af 100644
--- a/pywikibot/tools/djvu.py
+++ b/pywikibot/tools/djvu.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Wrapper around djvulibre to access djvu files properties and
content."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/pywikibot/tools/formatter.py b/pywikibot/tools/formatter.py
index 6ab45cb..8c024b8 100644
--- a/pywikibot/tools/formatter.py
+++ b/pywikibot/tools/formatter.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Module containing various formatting related
utilities."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/pywikibot/userinterfaces/__init__.py b/pywikibot/userinterfaces/__init__.py
index c721338..b57ecdc 100644
--- a/pywikibot/userinterfaces/__init__.py
+++ b/pywikibot/userinterfaces/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""User interfaces."""
diff --git a/pywikibot/userinterfaces/gui.py b/pywikibot/userinterfaces/gui.py
index 41b57c4..2fd61e3 100644
--- a/pywikibot/userinterfaces/gui.py
+++ b/pywikibot/userinterfaces/gui.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
A window with a textfield where the user can edit.
diff --git a/pywikibot/userinterfaces/terminal_interface.py
b/pywikibot/userinterfaces/terminal_interface.py
index 61f1bab..7efca34 100644
--- a/pywikibot/userinterfaces/terminal_interface.py
+++ b/pywikibot/userinterfaces/terminal_interface.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Platform independent terminal interface module.
diff --git a/pywikibot/userinterfaces/terminal_interface_base.py
b/pywikibot/userinterfaces/terminal_interface_base.py
index 2ca2ec8..b455254 100755
--- a/pywikibot/userinterfaces/terminal_interface_base.py
+++ b/pywikibot/userinterfaces/terminal_interface_base.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Base for terminal user interfaces."""
#
# (C) Pywikibot team, 2003-2021
diff --git a/pywikibot/userinterfaces/terminal_interface_unix.py
b/pywikibot/userinterfaces/terminal_interface_unix.py
index 6f2cd8f..12caad7 100755
--- a/pywikibot/userinterfaces/terminal_interface_unix.py
+++ b/pywikibot/userinterfaces/terminal_interface_unix.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""User interface for unix terminals."""
#
# (C) Pywikibot team, 2003-2020
diff --git a/pywikibot/userinterfaces/terminal_interface_win32.py
b/pywikibot/userinterfaces/terminal_interface_win32.py
index 7696eaa..292ee34 100755
--- a/pywikibot/userinterfaces/terminal_interface_win32.py
+++ b/pywikibot/userinterfaces/terminal_interface_win32.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""User interface for Win32 terminals."""
#
# (C) Pywikibot team, 2003-2020
diff --git a/pywikibot/userinterfaces/transliteration.py
b/pywikibot/userinterfaces/transliteration.py
index c7b6abb..d540394 100644
--- a/pywikibot/userinterfaces/transliteration.py
+++ b/pywikibot/userinterfaces/transliteration.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Module to transliterate text."""
#
# (C) Pywikibot team, 2006-2020
diff --git a/pywikibot/userinterfaces/win32_unicode.py
b/pywikibot/userinterfaces/win32_unicode.py
index e03d861..218be16 100755
--- a/pywikibot/userinterfaces/win32_unicode.py
+++ b/pywikibot/userinterfaces/win32_unicode.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Stdout, stderr and argv support for unicode."""
#
# (C) Pywikibot team, 2012-2018
diff --git a/pywikibot/version.py b/pywikibot/version.py
index d6421cc..cdf0d6d 100644
--- a/pywikibot/version.py
+++ b/pywikibot/version.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Module to determine the pywikibot version (tag, revision and
date)."""
#
# (C) Pywikibot team, 2007-2020
diff --git a/pywikibot/xmlreader.py b/pywikibot/xmlreader.py
index ea5ffd9..4d46347 100644
--- a/pywikibot/xmlreader.py
+++ b/pywikibot/xmlreader.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
XML reading module.
diff --git a/scripts/__init__.py b/scripts/__init__.py
index c5f2e74..ab8c50a 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""THIS DIRECTORY IS TO HOLD BOT SCRIPTS FOR THE NEW
FRAMEWORK."""
diff --git a/scripts/add_text.py b/scripts/add_text.py
index 7b78675..1a25359 100755
--- a/scripts/add_text.py
+++ b/scripts/add_text.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
This is a Bot to add a text at the end of the content of the page.
diff --git a/scripts/archive/__init__.py b/scripts/archive/__init__.py
index 2a48d31..e8c3cb8 100644
--- a/scripts/archive/__init__.py
+++ b/scripts/archive/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""THIS DIRECTORY IS TO HOLD BOT SCRIPTS THAT NO LONGER ARE
MAINTAINED."""
diff --git a/scripts/archive/cfd.py b/scripts/archive/cfd.py
index 85f0cd4..287c907 100755
--- a/scripts/archive/cfd.py
+++ b/scripts/archive/cfd.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script processes the Categories for discussion working page.
diff --git a/scripts/archive/featured.py b/scripts/archive/featured.py
index 19fdd0d..2e24ff8 100755
--- a/scripts/archive/featured.py
+++ b/scripts/archive/featured.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Manage featured/good article/list status template.
diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index 6c38f88..4bf4923 100755
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
archivebot.py - discussion page archiving bot.
diff --git a/scripts/basic.py b/scripts/basic.py
index 477b255..f56e38f 100755
--- a/scripts/basic.py
+++ b/scripts/basic.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
An incomplete sample script.
diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py
index 62de8be..033f1ad 100755
--- a/scripts/blockpageschecker.py
+++ b/scripts/blockpageschecker.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
A bot to remove stale protection templates from pages that are not protected.
diff --git a/scripts/capitalize_redirects.py b/scripts/capitalize_redirects.py
index 308d082..8c42c62 100755
--- a/scripts/capitalize_redirects.py
+++ b/scripts/capitalize_redirects.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Bot to create capitalized redirects.
diff --git a/scripts/casechecker.py b/scripts/casechecker.py
index 7201a03..40a7c45 100755
--- a/scripts/casechecker.py
+++ b/scripts/casechecker.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Bot to find all pages on the wiki with mixed latin and cyrilic
alphabets."""
#
# (C) Pywikibot team, 2006-2020
diff --git a/scripts/catall.py b/scripts/catall.py
index c466e84..7dab27f 100755
--- a/scripts/catall.py
+++ b/scripts/catall.py
@@ -1,5 +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/category_redirect.py b/scripts/category_redirect.py
index 98fd0c6..8d1c75d 100755
--- a/scripts/category_redirect.py
+++ b/scripts/category_redirect.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""This bot will move pages out of redirected categories.
The bot will look for categories that are marked with a category redirect
diff --git a/scripts/change_pagelang.py b/scripts/change_pagelang.py
index 0b8e544..a323715 100755
--- a/scripts/change_pagelang.py
+++ b/scripts/change_pagelang.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script changes the content language of pages.
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 1a90e68..9a10b97 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to check recently uploaded files.
diff --git a/scripts/claimit.py b/scripts/claimit.py
index 0e30a11..e928602 100755
--- a/scripts/claimit.py
+++ b/scripts/claimit.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
A script that adds claims to Wikidata items based on a list of pages.
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py
index 4b9c0c6..1fcf8f1 100755
--- a/scripts/clean_sandbox.py
+++ b/scripts/clean_sandbox.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot resets a (user) sandbox with predefined text.
diff --git a/scripts/commons_link.py b/scripts/commons_link.py
index 29ca5b2..418b291 100755
--- a/scripts/commons_link.py
+++ b/scripts/commons_link.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Include Commons template in home wiki.
diff --git a/scripts/commonscat.py b/scripts/commonscat.py
index 39a6708..951245c 100755
--- a/scripts/commonscat.py
+++ b/scripts/commonscat.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
With this tool you can add the template {{commonscat}} to categories.
diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py
index 51527ec..565dd5e 100755
--- a/scripts/coordinate_import.py
+++ b/scripts/coordinate_import.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Coordinate importing script.
diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py
index c140cb0..0a29f14 100644
--- a/scripts/cosmetic_changes.py
+++ b/scripts/cosmetic_changes.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This module can do slight modifications to tidy a wiki page's source code.
diff --git a/scripts/create_categories.py b/scripts/create_categories.py
index a7c9c61..0c8f75a 100755
--- a/scripts/create_categories.py
+++ b/scripts/create_categories.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Program to batch create categories.
diff --git a/scripts/data_ingestion.py b/scripts/data_ingestion.py
index e526b92..19bbbb3 100755
--- a/scripts/data_ingestion.py
+++ b/scripts/data_ingestion.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
A generic bot to do data ingestion (batch uploading) of photos or other files.
diff --git a/scripts/delete.py b/scripts/delete.py
index ed2c0ae..777fc82 100755
--- a/scripts/delete.py
+++ b/scripts/delete.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script can be used to delete and undelete pages en masse.
diff --git a/scripts/disambredir.py b/scripts/disambredir.py
index 7b430fe..fe8281b 100755
--- a/scripts/disambredir.py
+++ b/scripts/disambredir.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
User assisted updating redirect links on disambiguation pages.
diff --git a/scripts/djvutext.py b/scripts/djvutext.py
index 73195ae..bf95179 100644
--- a/scripts/djvutext.py
+++ b/scripts/djvutext.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot uploads text from djvu files onto pages in the "Page" namespace.
diff --git a/scripts/editarticle.py b/scripts/editarticle.py
index f974011..c61eba0 100755
--- a/scripts/editarticle.py
+++ b/scripts/editarticle.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Edit a Wikipedia article with your favourite editor.
diff --git a/scripts/fixing_redirects.py b/scripts/fixing_redirects.py
index 179b109..473a6e1 100755
--- a/scripts/fixing_redirects.py
+++ b/scripts/fixing_redirects.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Correct all redirect links in featured pages or only one page of each wiki.
diff --git a/scripts/flickrripper.py b/scripts/flickrripper.py
index 052e771..bf845b5 100755
--- a/scripts/flickrripper.py
+++ b/scripts/flickrripper.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
A tool to transfer flickr photos to Wikimedia Commons.
diff --git a/scripts/followlive.py b/scripts/followlive.py
index 5413879..a5dac68 100644
--- a/scripts/followlive.py
+++ b/scripts/followlive.py
@@ -1,6 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
"""
Periodically grab list of new articles and analyze to blank or flag them.
diff --git a/scripts/freebasemappingupload.py b/scripts/freebasemappingupload.py
index 848ec4d..2a3f5fd 100755
--- a/scripts/freebasemappingupload.py
+++ b/scripts/freebasemappingupload.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to upload the mappings of Freebase to Wikidata.
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index e96cbfc..d282302 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Template harvesting script.
diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py
index 5567304..b73853b 100755
--- a/scripts/illustrate_wikidata.py
+++ b/scripts/illustrate_wikidata.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Bot to add images to Wikidata items.
diff --git a/scripts/image.py b/scripts/image.py
index b2a9f2f..ff60fd4 100755
--- a/scripts/image.py
+++ b/scripts/image.py
@@ -1,5 +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/imagecopy.py b/scripts/imagecopy.py
index 71aa1a6..ba69c6b 100644
--- a/scripts/imagecopy.py
+++ b/scripts/imagecopy.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Script to copy files from a local Wikimedia wiki to Wikimedia Commons.
diff --git a/scripts/imagecopy_self.py b/scripts/imagecopy_self.py
index 7963a94..0d5f1f5 100644
--- a/scripts/imagecopy_self.py
+++ b/scripts/imagecopy_self.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Script to copy self published files from English Wikipedia to Commons.
diff --git a/scripts/imageharvest.py b/scripts/imageharvest.py
index daa9a73..219e46f 100644
--- a/scripts/imageharvest.py
+++ b/scripts/imageharvest.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Bot for getting multiple images from an external site.
diff --git a/scripts/imagerecat.py b/scripts/imagerecat.py
index ee68444..09bd397 100755
--- a/scripts/imagerecat.py
+++ b/scripts/imagerecat.py
@@ -1,5 +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 05f9074..43def4f 100755
--- a/scripts/imagetransfer.py
+++ b/scripts/imagetransfer.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to copy images to Wikimedia Commons, or to another wiki.
diff --git a/scripts/imageuncat.py b/scripts/imageuncat.py
index 25a75f1..c5a78d8 100755
--- a/scripts/imageuncat.py
+++ b/scripts/imageuncat.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Program to add uncat template to images without categories at commons.
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 06ce5b1..5a8ed00 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to check language links for general pages.
diff --git a/scripts/interwikidata.py b/scripts/interwikidata.py
index bc1e139..370614b 100644
--- a/scripts/interwikidata.py
+++ b/scripts/interwikidata.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to handle interwiki links based on Wikibase.
diff --git a/scripts/isbn.py b/scripts/isbn.py
index b039f3b..65d1707 100755
--- a/scripts/isbn.py
+++ b/scripts/isbn.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script reports and fixes invalid ISBN numbers.
diff --git a/scripts/listpages.py b/scripts/listpages.py
index 82228e7..4ebb684 100755
--- a/scripts/listpages.py
+++ b/scripts/listpages.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Print a list of pages, as defined by page generator parameters.
diff --git a/scripts/login.py b/scripts/login.py
index 7227b21..c289659 100755
--- a/scripts/login.py
+++ b/scripts/login.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to log the bot in to a wiki account.
diff --git a/scripts/lonelypages.py b/scripts/lonelypages.py
index b1d738a..103339b 100755
--- a/scripts/lonelypages.py
+++ b/scripts/lonelypages.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This is a script written to add the template "orphan" to pages.
diff --git a/scripts/maintenance/__init__.py b/scripts/maintenance/__init__.py
index b7da6ee..3fe2e25 100644
--- a/scripts/maintenance/__init__.py
+++ b/scripts/maintenance/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""Maintenance scripts."""
diff --git a/scripts/maintenance/cache.py b/scripts/maintenance/cache.py
index 27d3c90..1dd1d62 100755
--- a/scripts/maintenance/cache.py
+++ b/scripts/maintenance/cache.py
@@ -1,5 +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/colors.py b/scripts/maintenance/colors.py
index 63d22a4..270d25a 100644
--- a/scripts/maintenance/colors.py
+++ b/scripts/maintenance/colors.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Utility to show pywikibot colors."""
#
# (C) Pywikibot team, 2016-2020
diff --git a/scripts/maintenance/compat2core.py b/scripts/maintenance/compat2core.py
index a175101..8fde419 100755
--- a/scripts/maintenance/compat2core.py
+++ b/scripts/maintenance/compat2core.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
A helper script to convert compat 1.0 scripts to the new core 3.0 framework.
diff --git a/scripts/maintenance/interwikidumps.py
b/scripts/maintenance/interwikidumps.py
index 7a1b5cf..bdc1272 100644
--- a/scripts/maintenance/interwikidumps.py
+++ b/scripts/maintenance/interwikidumps.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script to convert interwiki dumps from pickle format to txt
format."""
#
# (C) Pywikibot team, 2019-2020
diff --git a/scripts/maintenance/make_i18n_dict.py
b/scripts/maintenance/make_i18n_dict.py
index 284e82c..33b7a9a 100755
--- a/scripts/maintenance/make_i18n_dict.py
+++ b/scripts/maintenance/make_i18n_dict.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Generate an i18n file from a given script.
@@ -73,7 +72,6 @@
keys.remove('en')
keys.insert(0, 'en')
- print('# -*- coding: utf-8 -*-')
print('msg = {')
for code in keys:
print(" '%s': {" % code)
diff --git a/scripts/maintenance/sorting_order.py b/scripts/maintenance/sorting_order.py
index 58fc4b1..040c318 100644
--- a/scripts/maintenance/sorting_order.py
+++ b/scripts/maintenance/sorting_order.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script that updates interwiki sorting order in family.py
file."""
#
# (C) Pywikibot team, 2020
diff --git a/scripts/maintenance/update_linktrails.py
b/scripts/maintenance/update_linktrails.py
index bc50819..d0b3205 100644
--- a/scripts/maintenance/update_linktrails.py
+++ b/scripts/maintenance/update_linktrails.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script that updates the linktrails in family.py file.
linktrails contains a regex for each site code which holds letters that
diff --git a/scripts/maintenance/wikimedia_sites.py
b/scripts/maintenance/wikimedia_sites.py
index 12b0e18..cb71b11 100755
--- a/scripts/maintenance/wikimedia_sites.py
+++ b/scripts/maintenance/wikimedia_sites.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script that updates the language lists in Wikimedia family files.
Usage:
diff --git a/scripts/makecat.py b/scripts/makecat.py
index 8f6f9ac..f3d6182 100755
--- a/scripts/makecat.py
+++ b/scripts/makecat.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: UTF-8 -*-
"""
Bot to add new or existing categories to pages.
diff --git a/scripts/match_images.py b/scripts/match_images.py
index 7283f2c..2f63593 100755
--- a/scripts/match_images.py
+++ b/scripts/match_images.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Program to match two images based on histograms.
diff --git a/scripts/misspelling.py b/scripts/misspelling.py
index 773bace..91d7ef1 100755
--- a/scripts/misspelling.py
+++ b/scripts/misspelling.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script fixes links that contain common spelling mistakes.
diff --git a/scripts/movepages.py b/scripts/movepages.py
index c340921..0182af2 100755
--- a/scripts/movepages.py
+++ b/scripts/movepages.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script can move pages.
diff --git a/scripts/ndashredir.py b/scripts/ndashredir.py
index ce5e717..b5f8068 100644
--- a/scripts/ndashredir.py
+++ b/scripts/ndashredir.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
A script to create hyphenated redirects for n or m dash pages.
diff --git a/scripts/newitem.py b/scripts/newitem.py
index f3cea28..b1fedb4 100755
--- a/scripts/newitem.py
+++ b/scripts/newitem.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script creates new items on Wikidata based on certain criteria.
diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 54be11c..20407cc 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This script adds a missing references section to pages.
diff --git a/scripts/nowcommons.py b/scripts/nowcommons.py
index 2aa9da9..e328d51 100755
--- a/scripts/nowcommons.py
+++ b/scripts/nowcommons.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Script to delete files that are also present on Wikimedia Commons.
diff --git a/scripts/pagefromfile.py b/scripts/pagefromfile.py
index 0a85865..46a087c 100755
--- a/scripts/pagefromfile.py
+++ b/scripts/pagefromfile.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Bot to upload pages from a text file.
diff --git a/scripts/parser_function_count.py b/scripts/parser_function_count.py
index db2856f..71ae836 100644
--- a/scripts/parser_function_count.py
+++ b/scripts/parser_function_count.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Used to find expensive templates that are subject to be converted to Lua.
diff --git a/scripts/patrol.py b/scripts/patrol.py
index e465c55..1f3ee74 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
The bot is meant to mark the edits based on info obtained by whitelist.
diff --git a/scripts/piper.py b/scripts/piper.py
index 5c1f97f..98a2efc 100755
--- a/scripts/piper.py
+++ b/scripts/piper.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
This bot uses external filtering programs for munging text.
diff --git a/scripts/protect.py b/scripts/protect.py
index 1366355..d00d54c 100755
--- a/scripts/protect.py
+++ b/scripts/protect.py
@@ -1,5 +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 61fa1e0..fe12b3e 100755
--- a/scripts/reflinks.py
+++ b/scripts/reflinks.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Fetch and add titles for bare links in references.
diff --git a/scripts/replace.py b/scripts/replace.py
index b1f20e1..4559626 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
This bot will make direct text replacements.
diff --git a/scripts/replicate_wiki.py b/scripts/replicate_wiki.py
index 9c2ab13..966a6b4 100755
--- a/scripts/replicate_wiki.py
+++ b/scripts/replicate_wiki.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot replicates pages in a wiki to a second wiki within one family.
diff --git a/scripts/revertbot.py b/scripts/revertbot.py
index a5f5819..a70f098 100755
--- a/scripts/revertbot.py
+++ b/scripts/revertbot.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
This script can be used for reverting certain edits.
diff --git a/scripts/selflink.py b/scripts/selflink.py
index 3b7576c..62e0b37 100755
--- a/scripts/selflink.py
+++ b/scripts/selflink.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot searches for selflinks and allows removing them.
diff --git a/scripts/shell.py b/scripts/shell.py
index 2ff80da..694e99a 100755
--- a/scripts/shell.py
+++ b/scripts/shell.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Spawns an interactive Python shell and imports the pywikibot library.
diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py
index 15b557c..3d4acc7 100755
--- a/scripts/solve_disambiguation.py
+++ b/scripts/solve_disambiguation.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to help a human solve disambiguations by presenting a set of options.
diff --git a/scripts/spamremove.py b/scripts/spamremove.py
index 029c5e8..fc4be64 100755
--- a/scripts/spamremove.py
+++ b/scripts/spamremove.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to remove links that are being or have been spammed.
diff --git a/scripts/speedy_delete.py b/scripts/speedy_delete.py
index aaf6ad9..1535f28 100644
--- a/scripts/speedy_delete.py
+++ b/scripts/speedy_delete.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Help sysops to quickly check and/or delete pages listed for speedy deletion.
diff --git a/scripts/standardize_interwiki.py b/scripts/standardize_interwiki.py
index 84775bb..7c6230a 100644
--- a/scripts/standardize_interwiki.py
+++ b/scripts/standardize_interwiki.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Loop over all pages in the home wiki, standardizing the interwiki links.
diff --git a/scripts/states_redirect.py b/scripts/states_redirect.py
index 6edd0ab..1234217 100755
--- a/scripts/states_redirect.py
+++ b/scripts/states_redirect.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Create country sub-division redirect pages.
Check if they are in the form Something, State, and if so, create a redirect
diff --git a/scripts/surnames_redirects.py b/scripts/surnames_redirects.py
index 4684799..268626c 100755
--- a/scripts/surnames_redirects.py
+++ b/scripts/surnames_redirects.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Bot to create redirects based on name order.
diff --git a/scripts/table2wiki.py b/scripts/table2wiki.py
index 8589d28..cf7b59f 100644
--- a/scripts/table2wiki.py
+++ b/scripts/table2wiki.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Nifty script to convert HTML-tables to MediaWiki's own syntax.
diff --git a/scripts/template.py b/scripts/template.py
index 591047a..e5570d5 100755
--- a/scripts/template.py
+++ b/scripts/template.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
Very simple script to replace a template with another one.
diff --git a/scripts/templatecount.py b/scripts/templatecount.py
index 076d611..64a4e4c 100755
--- a/scripts/templatecount.py
+++ b/scripts/templatecount.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Display the list of pages transcluding a given list of templates.
diff --git a/scripts/touch.py b/scripts/touch.py
index 34cec15..65eff2e 100755
--- a/scripts/touch.py
+++ b/scripts/touch.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot goes over multiple pages of a wiki, and edits them without changes.
diff --git a/scripts/transferbot.py b/scripts/transferbot.py
index c4df3e1..7c4f1c0 100755
--- a/scripts/transferbot.py
+++ b/scripts/transferbot.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
r"""
This script transfers pages from a source wiki to a target wiki.
diff --git a/scripts/unlink.py b/scripts/unlink.py
index 6887534..0d73d0c 100755
--- a/scripts/unlink.py
+++ b/scripts/unlink.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot unlinks a page on every page that links to it.
diff --git a/scripts/unusedfiles.py b/scripts/unusedfiles.py
index ad05f56..ac1e36f 100755
--- a/scripts/unusedfiles.py
+++ b/scripts/unusedfiles.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot appends some text to all unused images and notifies uploaders.
diff --git a/scripts/upload.py b/scripts/upload.py
index 7582005..ba07718 100755
--- a/scripts/upload.py
+++ b/scripts/upload.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Script to upload images to wikipedia.
diff --git a/scripts/userscripts/__init__.py b/scripts/userscripts/__init__.py
index 02a8c63..f36f2b9 100644
--- a/scripts/userscripts/__init__.py
+++ b/scripts/userscripts/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""THIS DIRECTORY IS TO HOLD USER-DEFINED BOT SCRIPTS."""
diff --git a/scripts/version.py b/scripts/version.py
index 3fe6695..6e00b0c 100755
--- a/scripts/version.py
+++ b/scripts/version.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script to determine the Pywikibot version (tag, revision and
date)."""
#
# (C) Pywikibot team, 2007-2020
diff --git a/scripts/watchlist.py b/scripts/watchlist.py
index a7b083c..8738154 100755
--- a/scripts/watchlist.py
+++ b/scripts/watchlist.py
@@ -1,5 +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 264cf2f..de3885e 100755
--- a/scripts/weblinkchecker.py
+++ b/scripts/weblinkchecker.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot is used for checking external links found at the wiki.
diff --git a/scripts/wikisourcetext.py b/scripts/wikisourcetext.py
index 71f696e..bf076b9 100644
--- a/scripts/wikisourcetext.py
+++ b/scripts/wikisourcetext.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
This bot applies to Wikisource sites to upload text.
diff --git a/tests/add_text_tests.py b/tests/add_text_tests.py
index fed38c4..a396064 100644
--- a/tests/add_text_tests.py
+++ b/tests/add_text_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test add_text bot module."""
#
# (C) Pywikibot team, 2016-2021
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
index e003172..2e373d5 100644
--- a/tests/archivebot_tests.py
+++ b/tests/archivebot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for archivebot scripts."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/basepage.py b/tests/basepage.py
index f4eb117..a52fc98 100644
--- a/tests/basepage.py
+++ b/tests/basepage.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for BasePage subclasses."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/basesite_tests.py b/tests/basesite_tests.py
index 96a8395..559020b 100644
--- a/tests/basesite_tests.py
+++ b/tests/basesite_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the site module."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/tests/bot_tests.py b/tests/bot_tests.py
index 58f48db..e7d38f5 100644
--- a/tests/bot_tests.py
+++ b/tests/bot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Bot tests."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/cache_tests.py b/tests/cache_tests.py
index 9dae926..749dc48 100644
--- a/tests/cache_tests.py
+++ b/tests/cache_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""API Request cache tests."""
#
# (C) Pywikibot team, 2012-2021
diff --git a/tests/category_bot_tests.py b/tests/category_bot_tests.py
index 8cb719f..cd31ce9 100644
--- a/tests/category_bot_tests.py
+++ b/tests/category_bot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the category bot script."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/category_tests.py b/tests/category_tests.py
index f250e71..cdaf1f9 100644
--- a/tests/category_tests.py
+++ b/tests/category_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the Category class."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/checkimages_tests.py b/tests/checkimages_tests.py
index 9b064ab..f5876fd 100644
--- a/tests/checkimages_tests.py
+++ b/tests/checkimages_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Unit tests for checkimages script."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/compat2core_tests.py b/tests/compat2core_tests.py
index 9db0380..a10b080 100644
--- a/tests/compat2core_tests.py
+++ b/tests/compat2core_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""compat2core.py tests."""
#
# (C) Pywikibot team, 2019-2021
diff --git a/tests/conftest.py b/tests/conftest.py
index bfd4ce3..5356e7a 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Used by pytest to do some preparation work before running
tests."""
#
# (C) Pywikibot team, 2016-2020
diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py
index 8d18748..233d5a8 100644
--- a/tests/cosmetic_changes_tests.py
+++ b/tests/cosmetic_changes_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test cosmetic_changes module."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/data/fixes.py b/tests/data/fixes.py
index b69c00c..178eb22 100644
--- a/tests/data/fixes.py
+++ b/tests/data/fixes.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Collection of fixes for tests."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/data/set-fixes.py b/tests/data/set-fixes.py
index f626b7c..1dee010 100644
--- a/tests/data/set-fixes.py
+++ b/tests/data/set-fixes.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Fixes implementation which overwrites the variable."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/data_ingestion_tests.py b/tests/data_ingestion_tests.py
index d94949c..1d1e560 100644
--- a/tests/data_ingestion_tests.py
+++ b/tests/data_ingestion_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Unit tests for data_ingestion.py script."""
#
# (C) Pywikibot team, 2012-2021
diff --git a/tests/date_tests.py b/tests/date_tests.py
index c0ac519..26d767b 100644
--- a/tests/date_tests.py
+++ b/tests/date_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the date module."""
#
# (C) Pywikibot team, 2012-2021
diff --git a/tests/deletionbot_tests.py b/tests/deletionbot_tests.py
index 14282aa..8aeffec 100644
--- a/tests/deletionbot_tests.py
+++ b/tests/deletionbot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for scripts/delete.py."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/deprecation_tests.py b/tests/deprecation_tests.py
index 4fbc5ce..68d3ce7 100644
--- a/tests/deprecation_tests.py
+++ b/tests/deprecation_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for deprecation tools."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/diff_tests.py b/tests/diff_tests.py
index a1ee48d..883b3d7 100644
--- a/tests/diff_tests.py
+++ b/tests/diff_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Test diff module."""
#
# (C) Pywikibot team, 2016-2020
diff --git a/tests/disambredir_tests.py b/tests/disambredir_tests.py
index 4380abd..bb5eed5 100644
--- a/tests/disambredir_tests.py
+++ b/tests/disambredir_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
DisambigurationRedirectBot test.
diff --git a/tests/djvu_tests.py b/tests/djvu_tests.py
index 2d5f583..b34ec3d 100644
--- a/tests/djvu_tests.py
+++ b/tests/djvu_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Unit tests for djvu.py."""
#
diff --git a/tests/dry_api_tests.py b/tests/dry_api_tests.py
index 45095a7..bd88503 100644
--- a/tests/dry_api_tests.py
+++ b/tests/dry_api_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""API tests which do not interact with a site."""
#
# (C) Pywikibot team, 2012-2020
diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py
index 237d7cb..9cc91a4 100644
--- a/tests/dry_site_tests.py
+++ b/tests/dry_site_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests against a fake Site object."""
#
# (C) Pywikibot team, 2012-2021
diff --git a/tests/echo_tests.py b/tests/echo_tests.py
index 2a4c1a7..e6e5060 100644
--- a/tests/echo_tests.py
+++ b/tests/echo_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test echo module."""
#
# (C) Pywikibot team, 2019-2021
diff --git a/tests/edit_failure_tests.py b/tests/edit_failure_tests.py
index 93ce048..7e64a66 100644
--- a/tests/edit_failure_tests.py
+++ b/tests/edit_failure_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Tests for edit failures.
diff --git a/tests/edit_tests.py b/tests/edit_tests.py
index f6705b6..ee04c1a 100644
--- a/tests/edit_tests.py
+++ b/tests/edit_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for editing pages."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/eventstreams_tests.py b/tests/eventstreams_tests.py
index 69dc638..e37dcd7 100644
--- a/tests/eventstreams_tests.py
+++ b/tests/eventstreams_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the eventstreams module."""
#
# (C) Pywikibot team, 2017-2021
diff --git a/tests/family_tests.py b/tests/family_tests.py
index 626f9e2..203efb7 100644
--- a/tests/family_tests.py
+++ b/tests/family_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the family module."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/file_tests.py b/tests/file_tests.py
index 89e82a3..af39bff 100644
--- a/tests/file_tests.py
+++ b/tests/file_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""FilePage tests."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/fixes_tests.py b/tests/fixes_tests.py
index 4fdef4b..2f8c355 100644
--- a/tests/fixes_tests.py
+++ b/tests/fixes_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for fixes module."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/fixing_redirects_tests.py b/tests/fixing_redirects_tests.py
index 32f5e0d..58f68c6 100644
--- a/tests/fixing_redirects_tests.py
+++ b/tests/fixing_redirects_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test fixing redirects bot module."""
#
# (C) Pywikibot team, 2018-2020
diff --git a/tests/flow_edit_tests.py b/tests/flow_edit_tests.py
index 0e1deaf..afc31e3 100644
--- a/tests/flow_edit_tests.py
+++ b/tests/flow_edit_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Edit tests for the flow module."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/flow_tests.py b/tests/flow_tests.py
index 93dd0c6..a6418ec 100644
--- a/tests/flow_tests.py
+++ b/tests/flow_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the flow module."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/flow_thanks_tests.py b/tests/flow_thanks_tests.py
index 568f3da..bf90ff1 100644
--- a/tests/flow_thanks_tests.py
+++ b/tests/flow_thanks_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for thanks-related code."""
#
# (C) Pywikibot team, 2016-2021
diff --git a/tests/generate_family_file_tests.py b/tests/generate_family_file_tests.py
index 64bb7a2..159b85d 100644
--- a/tests/generate_family_file_tests.py
+++ b/tests/generate_family_file_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test generate_family_file script."""
#
# (C) Pywikibot team, 2018-2020
diff --git a/tests/generate_user_files_tests.py b/tests/generate_user_files_tests.py
index c2b407a..7970358 100644
--- a/tests/generate_user_files_tests.py
+++ b/tests/generate_user_files_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test generate_user_files script."""
#
# (C) Pywikibot team, 2018-2020
diff --git a/tests/http_tests.py b/tests/http_tests.py
index d9c0b53..e8f8dcd 100644
--- a/tests/http_tests.py
+++ b/tests/http_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for http module."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/i18n/__init__.py b/tests/i18n/__init__.py
index df5895e..f1a0213 100644
--- a/tests/i18n/__init__.py
+++ b/tests/i18n/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""Test i18n data package."""
diff --git a/tests/i18n/pywikibot.py b/tests/i18n/pywikibot.py
index fb48092..8fc88bf 100644
--- a/tests/i18n/pywikibot.py
+++ b/tests/i18n/pywikibot.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""i18n message bundle called 'pywikibot' to fool the i18n
loader."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py
index 2cb6e7e..a0308de 100644
--- a/tests/i18n_tests.py
+++ b/tests/i18n_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test i18n module."""
#
# (C) Pywikibot team, 2007-2020
diff --git a/tests/imagecopy_tests.py b/tests/imagecopy_tests.py
index 7dedfa0..a98dbf6 100644
--- a/tests/imagecopy_tests.py
+++ b/tests/imagecopy_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for imagecopy script."""
#
# (C) Pywikibot team, 2018-2020
diff --git a/tests/interwiki_graph_tests.py b/tests/interwiki_graph_tests.py
index 8894e65..20af65d 100644
--- a/tests/interwiki_graph_tests.py
+++ b/tests/interwiki_graph_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Test Interwiki Graph functionality."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/interwiki_link_tests.py b/tests/interwiki_link_tests.py
index 2cbea5d..774f7e6 100644
--- a/tests/interwiki_link_tests.py
+++ b/tests/interwiki_link_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test Interwiki Link functionality."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py
index 0699665..2c9a932 100644
--- a/tests/interwikidata_tests.py
+++ b/tests/interwikidata_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for scripts/interwikidata.py."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/isbn_tests.py b/tests/isbn_tests.py
index ab7e4f4..46c0cb6 100644
--- a/tests/isbn_tests.py
+++ b/tests/isbn_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for isbn script."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py
index 341f61e..dce9fcf 100644
--- a/tests/l10n_tests.py
+++ b/tests/l10n_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test valid templates."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/login_tests.py b/tests/login_tests.py
index a8f3cb3..d0693ac 100644
--- a/tests/login_tests.py
+++ b/tests/login_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Tests for LoginManager classes.
diff --git a/tests/mediawikiversion_tests.py b/tests/mediawikiversion_tests.py
index 94f03e9..07398cf 100644
--- a/tests/mediawikiversion_tests.py
+++ b/tests/mediawikiversion_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the tools.MediaWikiVersion class."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/tests/namespace_tests.py b/tests/namespace_tests.py
index 4a02daf..c7a834a 100644
--- a/tests/namespace_tests.py
+++ b/tests/namespace_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the Namespace class."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/noreferences_tests.py b/tests/noreferences_tests.py
index 02f190d..d2d39bc 100644
--- a/tests/noreferences_tests.py
+++ b/tests/noreferences_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test noreferences bot module."""
#
# (C) Pywikibot team, 2018-2020
diff --git a/tests/oauth_tests.py b/tests/oauth_tests.py
index 8a6e87f..157c6e7 100644
--- a/tests/oauth_tests.py
+++ b/tests/oauth_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test OAuth functionality."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py
index d76d346..52288e9 100644
--- a/tests/paraminfo_tests.py
+++ b/tests/paraminfo_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test confirming paraminfo contains expected values."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py
index 6a89e9a..081af28 100644
--- a/tests/patrolbot_tests.py
+++ b/tests/patrolbot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the patrol script."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/plural_tests.py b/tests/plural_tests.py
index 57893d9..052a919 100644
--- a/tests/plural_tests.py
+++ b/tests/plural_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test plural module."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py
index a95d830..fd402e8 100644
--- a/tests/proofreadpage_tests.py
+++ b/tests/proofreadpage_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the proofreadpage module."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/protectbot_tests.py b/tests/protectbot_tests.py
index 1f11309..49b5b3d 100644
--- a/tests/protectbot_tests.py
+++ b/tests/protectbot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for scripts/protect.py."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/pwb/__init__.py b/tests/pwb/__init__.py
index 5ac80b8..fb493b3 100644
--- a/tests/pwb/__init__.py
+++ b/tests/pwb/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
"""Dummy package initialisation."""
diff --git a/tests/pwb/print_env.py b/tests/pwb/print_env.py
index 48c660c..f8ea695 100644
--- a/tests/pwb/print_env.py
+++ b/tests/pwb/print_env.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script that forms part of pwb_tests."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/pwb/print_locals.py b/tests/pwb/print_locals.py
index c1f27e3..8ce9be2 100644
--- a/tests/pwb/print_locals.py
+++ b/tests/pwb/print_locals.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script that forms part of pwb_tests."""
#
# (C) Pywikibot team, 2013-2020
diff --git a/tests/pwb/print_unicode.py b/tests/pwb/print_unicode.py
index 2f55325..9f97da1 100644
--- a/tests/pwb/print_unicode.py
+++ b/tests/pwb/print_unicode.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Script that forms part of pwb_tests."""
#
# (C) Pywikibot team, 2020
diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py
index 0ed6ecc..89ccc1b 100644
--- a/tests/pwb_tests.py
+++ b/tests/pwb_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Test pwb.py.
diff --git a/tests/redirect_bot_tests.py b/tests/redirect_bot_tests.py
index 92bbcc7..cd04426 100644
--- a/tests/redirect_bot_tests.py
+++ b/tests/redirect_bot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the redirect.py script."""
#
# (C) Pywikibot team, 2017-2021
diff --git a/tests/reflinks_tests.py b/tests/reflinks_tests.py
index 7fe2d26..5bdca2e 100644
--- a/tests/reflinks_tests.py
+++ b/tests/reflinks_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for reflinks script."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py
index b604250..ff3267e 100644
--- a/tests/replacebot_tests.py
+++ b/tests/replacebot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the replace script and ReplaceRobot class."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/script_tests.py b/tests/script_tests.py
index ca5b53a..a5e6b1f 100644
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test that each script can be compiled and executed."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/site_decorators_tests.py b/tests/site_decorators_tests.py
index 72b6e3b..1dae01a 100644
--- a/tests/site_decorators_tests.py
+++ b/tests/site_decorators_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests against a fake Site object."""
#
# (C) Pywikibot team, 2012-2021
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py
index 2b8c79b..2682b60 100644
--- a/tests/site_detect_tests.py
+++ b/tests/site_detect_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test for site detection."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/siteinfo_tests.py b/tests/siteinfo_tests.py
index 289475a..4bb48e5 100644
--- a/tests/siteinfo_tests.py
+++ b/tests/siteinfo_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the site module."""
#
# (C) Pywikibot team, 2008-2021
diff --git a/tests/sparql_tests.py b/tests/sparql_tests.py
index 9060486..0f4420b 100644
--- a/tests/sparql_tests.py
+++ b/tests/sparql_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test cases for the SPARQL API."""
#
# (C) Pywikibot team, 2016-2021
diff --git a/tests/template_bot_tests.py b/tests/template_bot_tests.py
index 87a3a79..c5de6ed 100644
--- a/tests/template_bot_tests.py
+++ b/tests/template_bot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test template bot module."""
#
# (C) Pywikibot team, 2015-2021
diff --git a/tests/tests_tests.py b/tests/tests_tests.py
index ecdd6d2..e34bc46 100755
--- a/tests/tests_tests.py
+++ b/tests/tests_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Tests for the tests package."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py
index 767ed1b..ce9e33a 100644
--- a/tests/textlib_tests.py
+++ b/tests/textlib_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test textlib module."""
#
# (C) Pywikibot team, 2011-2021
diff --git a/tests/thanks_tests.py b/tests/thanks_tests.py
index 8665228..c5b9267 100644
--- a/tests/thanks_tests.py
+++ b/tests/thanks_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for thanks-related code."""
#
# (C) Pywikibot team, 2016-2021
diff --git a/tests/thread_tests.py b/tests/thread_tests.py
index 49c7d31..112540d 100644
--- a/tests/thread_tests.py
+++ b/tests/thread_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for threading tools."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/timestamp_tests.py b/tests/timestamp_tests.py
index d3ce429..613e8ed 100644
--- a/tests/timestamp_tests.py
+++ b/tests/timestamp_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the Timestamp class."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/timestripper_tests.py b/tests/timestripper_tests.py
index fbe3a59..46e9b91 100644
--- a/tests/timestripper_tests.py
+++ b/tests/timestripper_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for archivebot.py/Timestripper."""
#
# (C) Pywikibot team, 2014-2020
diff --git a/tests/tk_tests.py b/tests/tk_tests.py
index c953683..e2444e3 100644
--- a/tests/tk_tests.py
+++ b/tests/tk_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the Tk UI."""
#
# (C) Pywikibot team, 2008-2020
diff --git a/tests/token_tests.py b/tests/token_tests.py
index 6e5ae57..80e4816 100644
--- a/tests/token_tests.py
+++ b/tests/token_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for tokens."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/tools_chars_tests.py b/tests/tools_chars_tests.py
index c915a08..f472a46 100644
--- a/tests/tools_chars_tests.py
+++ b/tests/tools_chars_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Test tools.chars package."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/tools_formatter_tests.py b/tests/tools_formatter_tests.py
index ef0f66d..c570378 100644
--- a/tests/tools_formatter_tests.py
+++ b/tests/tools_formatter_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the C{pywikibot.tools.formatter} module."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/tools_ip_tests.py b/tests/tools_ip_tests.py
index 1443996..5cef108 100644
--- a/tests/tools_ip_tests.py
+++ b/tests/tools_ip_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Test IP module/regex."""
#
# (C) Pywikibot team, 2012-2020
diff --git a/tests/tools_tests.py b/tests/tools_tests.py
index 192b337..1335459 100644
--- a/tests/tools_tests.py
+++ b/tests/tools_tests.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""Test tools package alone which don't fit into other
tests."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py
index daca08a..3013552 100644
--- a/tests/ui_options_tests.py
+++ b/tests/ui_options_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Bot tests for input_choice options."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/upload_tests.py b/tests/upload_tests.py
index 5cfbfae..91c1820 100644
--- a/tests/upload_tests.py
+++ b/tests/upload_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Site upload test.
diff --git a/tests/uploadbot_tests.py b/tests/uploadbot_tests.py
index cf07331..ce43964 100644
--- a/tests/uploadbot_tests.py
+++ b/tests/uploadbot_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
UploadRobot test.
diff --git a/tests/uploadscript_tests.py b/tests/uploadscript_tests.py
index 9e838ca..140b94e 100644
--- a/tests/uploadscript_tests.py
+++ b/tests/uploadscript_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""upload.py script test."""
#
# (C) Pywikibot team, 2019-2020
diff --git a/tests/user_tests.py b/tests/user_tests.py
index a07b128..09bcca8 100644
--- a/tests/user_tests.py
+++ b/tests/user_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for the User page."""
#
# (C) Pywikibot team, 2016-2020
diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py
index 5b185f3..e756394 100644
--- a/tests/weblinkchecker_tests.py
+++ b/tests/weblinkchecker_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""weblinkchecker test module."""
#
# (C) Pywikibot team, 2015-2020
diff --git a/tests/wikibase_edit_tests.py b/tests/wikibase_edit_tests.py
index 72c429b..5d2a1a9 100644
--- a/tests/wikibase_edit_tests.py
+++ b/tests/wikibase_edit_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Tests for editing Wikibase items.
diff --git a/tests/wikistats_tests.py b/tests/wikistats_tests.py
index 5d4b206..5883ed8 100644
--- a/tests/wikistats_tests.py
+++ b/tests/wikistats_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Test cases for the WikiStats dataset."""
#
# (C) Pywikibot team, 2014-2021
diff --git a/tests/xmlreader_tests.py b/tests/xmlreader_tests.py
index 4f41bb0..c0c92a8 100644
--- a/tests/xmlreader_tests.py
+++ b/tests/xmlreader_tests.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for xmlreader module."""
#
# (C) Pywikibot team, 2009-2020
diff --git a/user-config.py.sample b/user-config.py.sample
index b713b5e..2889796 100644
--- a/user-config.py.sample
+++ b/user-config.py.sample
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
# This is a sample file. You should use generate_user_files.py
# to create your user-config.py file.
diff --git a/user-fixes.py.sample b/user-fixes.py.sample
index acf7d81..cc21579 100644
--- a/user-fixes.py.sample
+++ b/user-fixes.py.sample
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
#
# This is only an example. Don't use it.
#
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657818
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie680a3ef658aa38e551a804b3aa4f85356d3adc0
Gerrit-Change-Number: 657818
Gerrit-PatchSet: 5
Gerrit-Owner: Bharatkhatri <bharatkhatri351(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged