jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/363210 )
Change subject: Remove __version__ string from scripts ......................................................................
Remove __version__ string from scripts
Also remove this string from older scripts when using compat2core.py
Bug: T87409 Change-Id: Id95c94d2371d0d09b47fd9f157ae3bc7815849ab --- M scripts/add_text.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.py M scripts/category_redirect.py M scripts/cfd.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/cache.py M scripts/maintenance/compat2core.py M scripts/maintenance/make_i18n_dict.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/newitem.py M scripts/noreferences.py M scripts/nowcommons.py M scripts/pagefromfile.py M scripts/patrol.py M scripts/piper.py M scripts/protect.py M scripts/redirect.py M scripts/reflinks.py M scripts/replace.py M scripts/replicate_wiki.py M scripts/revertbot.py M scripts/script_wui.py M scripts/shell.py M scripts/solve_disambiguation.py M scripts/spamremove.py M scripts/standardize_interwiki.py M scripts/states_redirect.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/version.py M scripts/watchlist.py M scripts/weblinkchecker.py M scripts/welcome.py M scripts/wikisourcetext.py 81 files changed, 30 insertions(+), 244 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/add_text.py b/scripts/add_text.py index 73d3f27..a40d765 100755 --- a/scripts/add_text.py +++ b/scripts/add_text.py @@ -62,9 +62,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import re import sys diff --git a/scripts/archivebot.py b/scripts/archivebot.py index 6fd88c6..52f1b31 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -89,14 +89,12 @@ # # (C) Misza13, 2006-2010 # (C) xqt, 2009-2016 -# (C) Pywikibot team, 2007-2016 +# (C) Pywikibot team, 2007-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import datetime import locale import math diff --git a/scripts/basic.py b/scripts/basic.py index c39804e..2112953 100755 --- a/scripts/basic.py +++ b/scripts/basic.py @@ -31,9 +31,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot from pywikibot import pagegenerators
diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py index 2756042..0f64bb2 100755 --- a/scripts/blockpageschecker.py +++ b/scripts/blockpageschecker.py @@ -56,9 +56,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re import time import webbrowser diff --git a/scripts/capitalize_redirects.py b/scripts/capitalize_redirects.py index 339a88f..0ce8da7 100755 --- a/scripts/capitalize_redirects.py +++ b/scripts/capitalize_redirects.py @@ -33,9 +33,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot from pywikibot import i18n, pagegenerators from pywikibot.bot import ( diff --git a/scripts/casechecker.py b/scripts/casechecker.py index 61287ab..9732227 100755 --- a/scripts/casechecker.py +++ b/scripts/casechecker.py @@ -7,7 +7,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$'
import codecs import itertools diff --git a/scripts/catall.py b/scripts/catall.py index 31ee2db..ed41c91 100755 --- a/scripts/catall.py +++ b/scripts/catall.py @@ -26,9 +26,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot from pywikibot import i18n, textlib from pywikibot.bot import QuitKeyboardInterrupt diff --git a/scripts/category.py b/scripts/category.py index aec975d..c244114 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -116,9 +116,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import os import pickle diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index 8bb1915..a401fd9 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -29,8 +29,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import re import sys import time diff --git a/scripts/cfd.py b/scripts/cfd.py index 5afc2fc..b09db1f 100755 --- a/scripts/cfd.py +++ b/scripts/cfd.py @@ -13,14 +13,11 @@ """ # # (C) Ben McIlwain, 2008 -# (C) Pywikibot team, 2009-2016 +# (C) Pywikibot team, 2009-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import re import sys diff --git a/scripts/checkimages.py b/scripts/checkimages.py index 2caf92b..08cae5d 100755 --- a/scripts/checkimages.py +++ b/scripts/checkimages.py @@ -88,9 +88,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import collections import re import time diff --git a/scripts/claimit.py b/scripts/claimit.py index e88259b..32860ad 100755 --- a/scripts/claimit.py +++ b/scripts/claimit.py @@ -56,9 +56,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot from pywikibot import pagegenerators, WikidataBot
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py index b31928b..47457fc 100755 --- a/scripts/clean_sandbox.py +++ b/scripts/clean_sandbox.py @@ -36,8 +36,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, division, unicode_literals -__version__ = '$Id$' -#
import datetime import time diff --git a/scripts/commons_link.py b/scripts/commons_link.py index 3ddffaf..61c0278 100755 --- a/scripts/commons_link.py +++ b/scripts/commons_link.py @@ -33,8 +33,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import re
import pywikibot diff --git a/scripts/commonscat.py b/scripts/commonscat.py index fc710ae..63d8eef 100755 --- a/scripts/commonscat.py +++ b/scripts/commonscat.py @@ -59,9 +59,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
import pywikibot diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py index bb4bbb0..26694d1 100755 --- a/scripts/coordinate_import.py +++ b/scripts/coordinate_import.py @@ -31,8 +31,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import pywikibot from pywikibot import pagegenerators, WikidataBot from pywikibot.exceptions import CoordinateGlobeUnknownException diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py index e8c23eb..6af8259 100644 --- a/scripts/cosmetic_changes.py +++ b/scripts/cosmetic_changes.py @@ -33,9 +33,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot
from pywikibot import config, cosmetic_changes, i18n, pagegenerators diff --git a/scripts/create_categories.py b/scripts/create_categories.py index 9701e7b..a9871c1 100755 --- a/scripts/create_categories.py +++ b/scripts/create_categories.py @@ -30,16 +30,15 @@ to create [[Category:Cultural heritage monuments in Hensies]].
""" -from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' # # (C) Multichill, 2011 # (C) xqt, 2011-2016 -# (c) Pywikibot team, 2016 +# (c) Pywikibot team, 2017 # # Distributed under the terms of the MIT license. # +from __future__ import absolute_import, unicode_literals + import pywikibot from pywikibot import pagegenerators, Bot
diff --git a/scripts/data_ingestion.py b/scripts/data_ingestion.py index f092829..a6628c1 100755 --- a/scripts/data_ingestion.py +++ b/scripts/data_ingestion.py @@ -8,14 +8,11 @@ python pwb.py data_ingestion -csvdir:local_dir/ -page:config_page """ # -# (C) Pywikibot team, 2013-2016 +# (C) Pywikibot team, 2013-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import base64 import codecs diff --git a/scripts/delete.py b/scripts/delete.py index c159b21..359c588 100755 --- a/scripts/delete.py +++ b/scripts/delete.py @@ -49,14 +49,11 @@ python pwb.py delete -cat:"To delete" -always """ # -# (C) Pywikibot team, 2016 +# (C) Pywikibot team, 2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import collections
diff --git a/scripts/disambredir.py b/scripts/disambredir.py index 610be97..e6a5590 100755 --- a/scripts/disambredir.py +++ b/scripts/disambredir.py @@ -18,8 +18,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import pywikibot
from pywikibot import textlib, pagegenerators diff --git a/scripts/djvutext.py b/scripts/djvutext.py index c7a8f13..87b4e83 100644 --- a/scripts/djvutext.py +++ b/scripts/djvutext.py @@ -28,13 +28,11 @@
""" # -# (C) Pywikibot team, 2008-2015 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$'
import os.path
diff --git a/scripts/editarticle.py b/scripts/editarticle.py index 44803f4..b51fb07 100755 --- a/scripts/editarticle.py +++ b/scripts/editarticle.py @@ -23,14 +23,11 @@ """ # # (C) Gerrit Holl, 2004 -# (C) Pywikibot team, 2004-2015 +# (C) Pywikibot team, 2004-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import argparse import os diff --git a/scripts/fixing_redirects.py b/scripts/fixing_redirects.py index 6e58f79..b12ffd0 100755 --- a/scripts/fixing_redirects.py +++ b/scripts/fixing_redirects.py @@ -19,8 +19,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import re
import pywikibot diff --git a/scripts/flickrripper.py b/scripts/flickrripper.py index a941eb5..7fd1fb1 100755 --- a/scripts/flickrripper.py +++ b/scripts/flickrripper.py @@ -25,14 +25,11 @@ """ # # (C) Multichill, 2009 -# (C) Pywikibot team, 2009-2016 +# (C) Pywikibot team, 2009-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import base64 import hashlib diff --git a/scripts/followlive.py b/scripts/followlive.py index 9f44acb..50a7af0 100644 --- a/scripts/followlive.py +++ b/scripts/followlive.py @@ -19,10 +19,7 @@ # # Distributed under the terms of the MIT license. # - from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$'
import datetime import sys diff --git a/scripts/freebasemappingupload.py b/scripts/freebasemappingupload.py index a773971..29f5054 100755 --- a/scripts/freebasemappingupload.py +++ b/scripts/freebasemappingupload.py @@ -15,14 +15,11 @@ """ # # (C) Denny Vrandecic, 2013 -# (C) Pywikibot team, 2013-2016 +# (C) Pywikibot team, 2013-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import gzip import os diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py index b9954af..e811f1c 100755 --- a/scripts/harvest_template.py +++ b/scripts/harvest_template.py @@ -31,9 +31,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import signal
willstop = False diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py index 329fb4d..b10b585 100755 --- a/scripts/illustrate_wikidata.py +++ b/scripts/illustrate_wikidata.py @@ -21,9 +21,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot
from pywikibot import pagegenerators, WikidataBot diff --git a/scripts/image.py b/scripts/image.py index f39f16d..e265598 100755 --- a/scripts/image.py +++ b/scripts/image.py @@ -37,14 +37,12 @@
""" # -# (C) Pywikibot team, 2013-2016 +# (C) Pywikibot team, 2013-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import re
import pywikibot diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py index 7d836a3..243c7be 100644 --- a/scripts/imagecopy.py +++ b/scripts/imagecopy.py @@ -83,8 +83,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import codecs import re import socket diff --git a/scripts/imagecopy_self.py b/scripts/imagecopy_self.py index c45fe22..b11c6b5 100644 --- a/scripts/imagecopy_self.py +++ b/scripts/imagecopy_self.py @@ -51,8 +51,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import re import threading import webbrowser diff --git a/scripts/imageharvest.py b/scripts/imageharvest.py index df97e9b..b21ed96 100644 --- a/scripts/imageharvest.py +++ b/scripts/imageharvest.py @@ -23,8 +23,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import os
try: diff --git a/scripts/imagerecat.py b/scripts/imagerecat.py index c7945f7..225b0bc 100755 --- a/scripts/imagerecat.py +++ b/scripts/imagerecat.py @@ -27,14 +27,11 @@ """ # # (C) Multichill, 2008-2011 -# (C) Pywikibot team, 2008-2014 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import re import socket diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py index 33e71f4..39424e1 100755 --- a/scripts/imagetransfer.py +++ b/scripts/imagetransfer.py @@ -33,8 +33,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import re import sys
diff --git a/scripts/imageuncat.py b/scripts/imageuncat.py index 4d46d7c..315f839 100755 --- a/scripts/imageuncat.py +++ b/scripts/imageuncat.py @@ -18,9 +18,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - from datetime import timedelta
import pywikibot diff --git a/scripts/interwiki.py b/scripts/interwiki.py index de2b3d8..2648618 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -343,9 +343,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import os import pickle diff --git a/scripts/interwikidata.py b/scripts/interwikidata.py index f4c23d5..2b7dfb7 100644 --- a/scripts/interwikidata.py +++ b/scripts/interwikidata.py @@ -27,9 +27,6 @@ # from __future__ import unicode_literals, absolute_import
-__version__ = '$Id$' -# - import pywikibot
from pywikibot import pagegenerators, output, warning diff --git a/scripts/isbn.py b/scripts/isbn.py index 0d16623..9679d33 100755 --- a/scripts/isbn.py +++ b/scripts/isbn.py @@ -41,9 +41,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
from functools import partial diff --git a/scripts/listpages.py b/scripts/listpages.py index 448c6bf..1a7a5e6 100755 --- a/scripts/listpages.py +++ b/scripts/listpages.py @@ -88,14 +88,11 @@ ¶ms; """ # -# (C) Pywikibot team, 2008-2016 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import os import re diff --git a/scripts/login.py b/scripts/login.py index 67efa1b..2adaf33 100755 --- a/scripts/login.py +++ b/scripts/login.py @@ -53,14 +53,11 @@ """ # # (C) Rob W.W. Hooft, 2003 -# (C) Pywikibot team, 2003-2014 +# (C) Pywikibot team, 2003-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
from os.path import join
diff --git a/scripts/lonelypages.py b/scripts/lonelypages.py index 54ced1a..22fb536 100755 --- a/scripts/lonelypages.py +++ b/scripts/lonelypages.py @@ -34,14 +34,11 @@ # # (C) Pietrodn, it.wiki 2006-2007 # (C) Filnik, it.wiki 2007 -# (C) Pywikibot team, 2008-2015 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import re import sys diff --git a/scripts/maintenance/cache.py b/scripts/maintenance/cache.py index ff75e02..ac66b35 100755 --- a/scripts/maintenance/cache.py +++ b/scripts/maintenance/cache.py @@ -64,8 +64,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -#
import datetime import hashlib diff --git a/scripts/maintenance/compat2core.py b/scripts/maintenance/compat2core.py index 8e3b9d4..6ec2fea 100755 --- a/scripts/maintenance/compat2core.py +++ b/scripts/maintenance/compat2core.py @@ -32,9 +32,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import os import re @@ -45,8 +42,8 @@ replacements = ( # doc strings ('#\r?\n__version__', - '#\n# Automatically ported from compat branch by compat2core.py script\n' - '#\n__version__'), + '#\n' + '# Automatically ported from compat branch by compat2core.py script\n'), ('Pywikipedia bot team', 'Pywikibot team'), # importing changes ('import wikipedia(?: as pywikibot)?', 'import pywikibot'), diff --git a/scripts/maintenance/make_i18n_dict.py b/scripts/maintenance/make_i18n_dict.py index 828df81..edb32a5 100755 --- a/scripts/maintenance/make_i18n_dict.py +++ b/scripts/maintenance/make_i18n_dict.py @@ -38,9 +38,6 @@ # from __future__ import absolute_import, print_function, unicode_literals
-__version__ = '$Id$' -# - import codecs import json import os diff --git a/scripts/maintenance/wikimedia_sites.py b/scripts/maintenance/wikimedia_sites.py index 38054ab..e1e67ac 100755 --- a/scripts/maintenance/wikimedia_sites.py +++ b/scripts/maintenance/wikimedia_sites.py @@ -9,9 +9,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import re
diff --git a/scripts/makecat.py b/scripts/makecat.py index 20b2267..de7ca82 100755 --- a/scripts/makecat.py +++ b/scripts/makecat.py @@ -43,9 +43,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import sys
diff --git a/scripts/match_images.py b/scripts/match_images.py index 1075dda..d618bca 100755 --- a/scripts/match_images.py +++ b/scripts/match_images.py @@ -26,12 +26,11 @@ """ # # (c) Multichill, 2009 -# (c) Pywikibot team, 2009-2015 +# (c) Pywikibot team, 2009-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, division, unicode_literals -__version__ = '$Id$'
import io
diff --git a/scripts/misspelling.py b/scripts/misspelling.py index 9d89085..b73eed6 100755 --- a/scripts/misspelling.py +++ b/scripts/misspelling.py @@ -28,9 +28,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot
from pywikibot import i18n, pagegenerators diff --git a/scripts/movepages.py b/scripts/movepages.py index 4bbc63e..5c6b3f8 100755 --- a/scripts/movepages.py +++ b/scripts/movepages.py @@ -40,9 +40,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
import pywikibot diff --git a/scripts/newitem.py b/scripts/newitem.py index 52ca0b6..f650b40 100755 --- a/scripts/newitem.py +++ b/scripts/newitem.py @@ -32,8 +32,6 @@ from pywikibot import pagegenerators, WikidataBot from pywikibot.exceptions import LockedPage, NoPage, PageNotSaved
-__version__ = '$Id$' -
class NewItemRobot(WikidataBot):
diff --git a/scripts/noreferences.py b/scripts/noreferences.py index ec98b79..3a3be25 100755 --- a/scripts/noreferences.py +++ b/scripts/noreferences.py @@ -40,9 +40,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
from functools import partial diff --git a/scripts/nowcommons.py b/scripts/nowcommons.py index 91f213d..b10eba0 100755 --- a/scripts/nowcommons.py +++ b/scripts/nowcommons.py @@ -52,9 +52,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import sys
import pywikibot diff --git a/scripts/pagefromfile.py b/scripts/pagefromfile.py index 509f6bb..f4e9341 100755 --- a/scripts/pagefromfile.py +++ b/scripts/pagefromfile.py @@ -62,9 +62,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import os import re diff --git a/scripts/patrol.py b/scripts/patrol.py index 9c72285..8396467 100755 --- a/scripts/patrol.py +++ b/scripts/patrol.py @@ -39,13 +39,12 @@
""" # -# (C) Pywikibot team, 2011-2016 +# (C) Pywikibot team, 2011-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' import time
from collections import defaultdict diff --git a/scripts/piper.py b/scripts/piper.py index 2812027..fc5aba9 100755 --- a/scripts/piper.py +++ b/scripts/piper.py @@ -35,9 +35,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import os import pipes import tempfile diff --git a/scripts/protect.py b/scripts/protect.py index b9a6962..92d5934 100755 --- a/scripts/protect.py +++ b/scripts/protect.py @@ -46,14 +46,11 @@ # Written by https://it.wikisource.org/wiki/Utente:Qualc1 # Created by modifying delete.py # -# (C) Pywikibot team, 2008-2016 +# (C) Pywikibot team, 2008-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import pywikibot from pywikibot import i18n, pagegenerators diff --git a/scripts/redirect.py b/scripts/redirect.py index e1ccdf9..bd8ddec 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -80,9 +80,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import datetime import sys
diff --git a/scripts/reflinks.py b/scripts/reflinks.py index c5a85ca..c178b0c 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -43,8 +43,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, division, unicode_literals -__version__ = '$Id$' -#
import codecs import os diff --git a/scripts/replace.py b/scripts/replace.py index 4357358..7e32b7d 100755 --- a/scripts/replace.py +++ b/scripts/replace.py @@ -134,9 +134,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import collections import re diff --git a/scripts/replicate_wiki.py b/scripts/replicate_wiki.py index 5a8ea13..f2c0729 100755 --- a/scripts/replicate_wiki.py +++ b/scripts/replicate_wiki.py @@ -42,14 +42,11 @@ """ # # (C) Kasper Souren, 2012-2013 -# (C) Pywikibot team, 2013-2016 +# (C) Pywikibot team, 2013-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import sys
diff --git a/scripts/revertbot.py b/scripts/revertbot.py index 3752a3a..d417347 100755 --- a/scripts/revertbot.py +++ b/scripts/revertbot.py @@ -23,9 +23,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
import pywikibot diff --git a/scripts/script_wui.py b/scripts/script_wui.py index 97cd2c8..1cb4fb0 100755 --- a/scripts/script_wui.py +++ b/scripts/script_wui.py @@ -24,7 +24,7 @@ """ # # (C) Dr. Trigon, 2012-2014 -# (C) Pywikibot team, 2014-2016 +# (C) Pywikibot team, 2014-2017 # # Distributed under the terms of the MIT license. # @@ -66,9 +66,6 @@ # --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import datetime import gc diff --git a/scripts/shell.py b/scripts/shell.py index 0969fed..a6b2a2b 100755 --- a/scripts/shell.py +++ b/scripts/shell.py @@ -14,14 +14,11 @@ ¶ms;
""" -# (C) Pywikibot team, 2014 +# (C) Pywikibot team, 2014-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
def main(*args): diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py index 7716173..5b044ea 100755 --- a/scripts/solve_disambiguation.py +++ b/scripts/solve_disambiguation.py @@ -77,9 +77,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs import os import re diff --git a/scripts/spamremove.py b/scripts/spamremove.py index b2ae02f..888ecf5 100755 --- a/scripts/spamremove.py +++ b/scripts/spamremove.py @@ -33,9 +33,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot
from pywikibot import pagegenerators diff --git a/scripts/standardize_interwiki.py b/scripts/standardize_interwiki.py index 7ef1a58..6a9e418 100644 --- a/scripts/standardize_interwiki.py +++ b/scripts/standardize_interwiki.py @@ -15,8 +15,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import pywikibot
from pywikibot import textlib diff --git a/scripts/states_redirect.py b/scripts/states_redirect.py index fde07ba..77a73b1 100755 --- a/scripts/states_redirect.py +++ b/scripts/states_redirect.py @@ -21,9 +21,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re import sys
diff --git a/scripts/table2wiki.py b/scripts/table2wiki.py index 3d41b20..471b79e 100644 --- a/scripts/table2wiki.py +++ b/scripts/table2wiki.py @@ -46,9 +46,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
import pywikibot diff --git a/scripts/template.py b/scripts/template.py index f44f541..c24067c 100755 --- a/scripts/template.py +++ b/scripts/template.py @@ -112,9 +112,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import re
from warnings import warn diff --git a/scripts/templatecount.py b/scripts/templatecount.py index ad00bdf..6756267 100755 --- a/scripts/templatecount.py +++ b/scripts/templatecount.py @@ -31,14 +31,12 @@
""" # -# (C) Pywikibot team, 2006-2016 +# (C) Pywikibot team, 2006-2017 # (C) xqt, 2009-2016 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$'
import datetime
diff --git a/scripts/touch.py b/scripts/touch.py index 88d8b5f..f674ed8 100755 --- a/scripts/touch.py +++ b/scripts/touch.py @@ -21,9 +21,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot
from pywikibot import pagegenerators diff --git a/scripts/transferbot.py b/scripts/transferbot.py index e6ece36..75daf30 100755 --- a/scripts/transferbot.py +++ b/scripts/transferbot.py @@ -36,14 +36,11 @@ """ # # (C) Merlijn van Deen, 2014 -# (C) Pywikibot team, 2015 +# (C) Pywikibot team, 2015-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import pywikibot from pywikibot import pagegenerators diff --git a/scripts/unlink.py b/scripts/unlink.py index 1e4de82..d94b045 100755 --- a/scripts/unlink.py +++ b/scripts/unlink.py @@ -27,9 +27,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import pywikibot from pywikibot.bot import ( SingleSiteBot, ExistingPageBot, NoRedirectPageBot, AutomaticTWSummaryBot, diff --git a/scripts/unusedfiles.py b/scripts/unusedfiles.py index 2e65460..d066d14 100755 --- a/scripts/unusedfiles.py +++ b/scripts/unusedfiles.py @@ -15,14 +15,11 @@ # (C) Leonardo Gregianin, 2007 # (C) Filnik, 2008 # (c) xqt, 2011-2016 -# (C) Pywikibot team, 2015-2016 +# (C) Pywikibot team, 2015-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import pywikibot from pywikibot import i18n, pagegenerators, Bot diff --git a/scripts/upload.py b/scripts/upload.py index d7902df..9c27b78 100755 --- a/scripts/upload.py +++ b/scripts/upload.py @@ -48,14 +48,12 @@ """ # # (C) Rob W.W. Hooft, Andre Engels 2003-2004 -# (C) Pywikibot team, 2003-2016 +# (C) Pywikibot team, 2003-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# import math import os import re diff --git a/scripts/version.py b/scripts/version.py index 59f3416..2989b81 100755 --- a/scripts/version.py +++ b/scripts/version.py @@ -4,14 +4,11 @@ # # (C) Merlijn 'valhallasw' van Deen, 2007-2008 # (C) xqt, 2010-2016 -# (C) Pywikibot team, 2007-2016 +# (C) Pywikibot team, 2007-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import codecs import os diff --git a/scripts/watchlist.py b/scripts/watchlist.py index dfdc6a8..cde0c03 100755 --- a/scripts/watchlist.py +++ b/scripts/watchlist.py @@ -17,14 +17,11 @@ """ # # (C) Daniel Herding, 2005 -# (C) Pywikibot team, 2005-2016 +# (C) Pywikibot team, 2005-2017 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -#
import os
diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py index 755c5fa..cb04322 100755 --- a/scripts/weblinkchecker.py +++ b/scripts/weblinkchecker.py @@ -105,8 +105,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import codecs import datetime import pickle diff --git a/scripts/welcome.py b/scripts/welcome.py index 08b8204..d31f556 100755 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -164,9 +164,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' -# - import codecs from datetime import timedelta import locale diff --git a/scripts/wikisourcetext.py b/scripts/wikisourcetext.py index 6ae1f92..de85959 100644 --- a/scripts/wikisourcetext.py +++ b/scripts/wikisourcetext.py @@ -52,8 +52,6 @@ # from __future__ import absolute_import, unicode_literals
-__version__ = '$Id$' - import itertools
import pywikibot
pywikibot-commits@lists.wikimedia.org