jenkins-bot has submitted this change and it was merged.
Change subject: Chaning the name in script files. Minor fixes. ......................................................................
Chaning the name in script files. Minor fixes.
Old name: "Pywikipedia bot team" New name: "Pywikibot team"
Change-Id: I943bbbe624aeee029eb34bb4a94f9eb1ff596921 --- M scripts/basic.py M scripts/blockpageschecker.py M scripts/category.py M scripts/category_redirect.py M scripts/cfd.py M scripts/claimit.py M scripts/clean_sandbox.py M scripts/cosmetic_changes.py M scripts/data_ingestion.py M scripts/delete.py M scripts/editarticle.py M scripts/featured.py M scripts/flickrripper.py M scripts/harvest_template.py M scripts/imagerecat.py M scripts/imageuncat.py M scripts/interwiki.py M scripts/isbn.py M scripts/listpages.py M scripts/login.py M scripts/movepages.py M scripts/noreferences.py M scripts/redirect.py M scripts/replace.py M scripts/replicate_wiki.py M scripts/solve_disambiguation.py M scripts/template.py M scripts/touch.py M scripts/upload.py M scripts/version.py 30 files changed, 104 insertions(+), 80 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/basic.py b/scripts/basic.py index 1d8bfab..4d73deb 100755 --- a/scripts/basic.py +++ b/scripts/basic.py @@ -16,7 +16,7 @@ and the bot will only work on that single page. """ # -# (C) Pywikipedia bot team, 2006-2011 +# (C) Pywikibot team, 2006-2013 # # Distributed under the terms of the MIT license. # diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py index affd2b7..d6a5677 100755 --- a/scripts/blockpageschecker.py +++ b/scripts/blockpageschecker.py @@ -57,7 +57,7 @@ # (C) Monobi a.k.a. Wikihermit, 2007 # (C) Filnik, 2007-2011 # (C) NicDumZ, 2008-2009 -# (C) Pywikipedia bot team, 2007-2013 +# (C) Pywikibot team, 2007-2013 # # Distributed under the terms of the MIT license. # diff --git a/scripts/category.py b/scripts/category.py index 01ecd70..54513b2 100755 --- a/scripts/category.py +++ b/scripts/category.py @@ -77,7 +77,6 @@ This will move all pages in the category US to the category United States.
""" - # # (C) Rob W.W. Hooft, 2004 # (C) Daniel Herding, 2004 @@ -86,12 +85,12 @@ # (C) Cyde, 2006-2010 # (C) Anreas J Schwab, 2007 # (C) xqt, 2009-2012 -# (C) Pywikipedia team, 2008-2013 -# -__version__ = '$Id$' +# (C) Pywikibot team, 2008-2013 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' +#
import os import re diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index 17053ff..005827f 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -13,14 +13,13 @@ are taken into account.
""" - # -# (C) Pywikipedia team, 2008-2011 -# -__version__ = '$Id$' +# (C) Pywikibot team, 2008-2011 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' +#
import cPickle import math diff --git a/scripts/cfd.py b/scripts/cfd.py index 9116660..e84da60 100644 --- a/scripts/cfd.py +++ b/scripts/cfd.py @@ -9,9 +9,12 @@ """ # # (C) Ben McIlwain, 2008 -# (C) Pywikipedia bot team, 2009-2013 +# (C) Pywikibot team, 2009-2013 # # Distributed under the terms of the MIT license. +# +__version__ = '$Id$' +#
import pywikibot import re diff --git a/scripts/claimit.py b/scripts/claimit.py index e72e804..f326a4c 100755 --- a/scripts/claimit.py +++ b/scripts/claimit.py @@ -1,10 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """ -Copyright (C) 2013 Legoktm -Copyright (C) 2013 Pywikipediabot team - -Distributed under the MIT License +This script adds claims to Wikidata items based on categories.
Usage:
@@ -14,6 +11,15 @@
Then list the property-->target pairs to add. """ +# +# (C) Legoktm, 2013 +# (C) Pywikibot team, 2013 +# +# Distributed under the terms of the MIT license. +# +__version__ = '$Id$' +# + import json import pywikibot from pywikibot import pagegenerators diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py index c06662c..50ee1ff 100755 --- a/scripts/clean_sandbox.py +++ b/scripts/clean_sandbox.py @@ -34,6 +34,7 @@ # (C) Siebrand Mazeland, 2007 # (C) xqt, 2009-2013 # (C) Dr. Trigon, 2012 +# (C) Pywikibot team, 2013 # # Distributed under the terms of the MIT license. # diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py index 5acb8ee..557873e 100755 --- a/scripts/cosmetic_changes.py +++ b/scripts/cosmetic_changes.py @@ -66,12 +66,13 @@ """ # # (C) xqt, 2009-2013 -# (C) Pywikipedia bot team, 2006-2013 +# (C) Pywikibot team, 2006-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' # + import sys import re import pywikibot diff --git a/scripts/data_ingestion.py b/scripts/data_ingestion.py index 386ff91..f8bc376 100755 --- a/scripts/data_ingestion.py +++ b/scripts/data_ingestion.py @@ -1,9 +1,16 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -''' +""" A generic bot to do data ingestion (batch uploading) to Commons +""" +# +# (C) Pywikibot team, 2013 +# +# Distributed under the terms of the MIT license. +# +__version__ = '$Id$' +#
-''' import pywikibot import posixpath import urlparse diff --git a/scripts/delete.py b/scripts/delete.py index 0a8e8b0..25b659e 100644 --- a/scripts/delete.py +++ b/scripts/delete.py @@ -25,10 +25,14 @@
python delete.py -cat:"To delete" -always """ -__version__ = '$Id$' +# +# (C) Pywikibot team, 2013 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' +# + import pywikibot from pywikibot import i18n, config, catlib, pagegenerators
diff --git a/scripts/editarticle.py b/scripts/editarticle.py index babf185..e6e74ab 100755 --- a/scripts/editarticle.py +++ b/scripts/editarticle.py @@ -2,26 +2,22 @@ # -*- coding: utf-8 -*- """ Edit a Wikipedia article with your favourite editor. -"""
+ TODO: - non existing pages + - edit conflicts + - minor edits + - watch/unwatch + - ... +""" # # (C) Gerrit Holl 2004 -# (C) Pywikipedia team, 2004-2012 -# -__version__ = "$Id$" +# (C) Pywikibot team, 2004-2012 # # Distributed under the terms of the MIT license. # - -# Version 0.4. +__version__ = "$Id$" # -# TODO: - non existing pages -# - edit conflicts -# - minor edits -# - watch/unwatch -# - ...
-__metaclass__ = type import os import string import optparse @@ -32,7 +28,7 @@ from pywikibot.editor import TextEditor
-class ArticleEditor: +class ArticleEditor(object): # join lines if line starts with this ones joinchars = string.letters + '[]' + string.digits
diff --git a/scripts/featured.py b/scripts/featured.py index 3923d71..a3bba6b 100644 --- a/scripts/featured.py +++ b/scripts/featured.py @@ -53,16 +53,16 @@ -quiet no corresponding pages are displayed.
""" -__version__ = '$Id$' - # # (C) Maxim Razin, 2005 # (C) Leonardo Gregianin, 2005-2008 # (C) xqt, 2009-2013 -# (C) Pywikipedia bot team, 2005-2012 +# (C) Pywikibot team, 2005-2012 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' +#
import pickle import re diff --git a/scripts/flickrripper.py b/scripts/flickrripper.py index 9b0c60d..da96c14 100644 --- a/scripts/flickrripper.py +++ b/scripts/flickrripper.py @@ -25,11 +25,12 @@ """ # # (C) Multichill, 2009 -# (C) Pywikipedia team, 2009-2013 +# (C) Pywikibot team, 2009-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' +#
import urllib import re diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py index c482c9d..dbdb9ac 100755 --- a/scripts/harvest_template.py +++ b/scripts/harvest_template.py @@ -15,8 +15,8 @@ ¶ms; """ # -# (C) 2013 Multichill, Amir -# (C) 2013 Pywikipediabot team +# (C) Multichill, Amir, 2013 +# (C) Pywikibot team, 2013 # # Distributed under the terms of MIT License. # diff --git a/scripts/imagerecat.py b/scripts/imagerecat.py index df04190..7016d18 100644 --- a/scripts/imagerecat.py +++ b/scripts/imagerecat.py @@ -24,14 +24,15 @@ wps : Work on all wikipedia's
""" -__version__ = '$Id$' # -# (C) Multichill 2008-2011 -# (C) Pywikipedia bot team, 2008-2013 +# (C) Multichill 2008-2011 +# (C) Pywikibot team, 2008-2013 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' # + import sys import re import urllib diff --git a/scripts/imageuncat.py b/scripts/imageuncat.py index 1f7e9ff..c75bada 100755 --- a/scripts/imageuncat.py +++ b/scripts/imageuncat.py @@ -5,12 +5,12 @@ See imagerecat.py (still working on that one) to add these images to categories.
""" -__version__ = '$Id$' # # (C) Multichill 2008 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' #
import os diff --git a/scripts/interwiki.py b/scripts/interwiki.py index edf08ab..74fd13b 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -336,7 +336,7 @@ # (C) Daniel Herding, 2004 # (C) Yuri Astrakhan, 2005-2006 # (C) xqt, 2009-2013 -# (C) Pywikipedia bot team, 2007-2013 +# (C) Pywikibot team, 2007-2013 # # Distributed under the terms of the MIT license. # diff --git a/scripts/isbn.py b/scripts/isbn.py index 76382f3..b2eb52a 100755 --- a/scripts/isbn.py +++ b/scripts/isbn.py @@ -35,8 +35,13 @@ -always Don't prompt you for each replacement.
""" - +# +# (C) Pywikibot team, 2013 +# +# Distributed under the terms of the MIT license. +# __version__ = '$Id$' +#
import sys import re diff --git a/scripts/listpages.py b/scripts/listpages.py index 2cb668b..4638abc 100644 --- a/scripts/listpages.py +++ b/scripts/listpages.py @@ -7,11 +7,12 @@ ¶ms; """ # -# (C) Pywikipedia bot team, 2008-2013 +# (C) Pywikibot team, 2008-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' +#
import pywikibot from pywikibot.pagegenerators import GeneratorFactory, parameterHelp diff --git a/scripts/login.py b/scripts/login.py index 02a4590..6d31e09 100755 --- a/scripts/login.py +++ b/scripts/login.py @@ -48,11 +48,12 @@ """ # # (C) Rob W.W. Hooft, 2003 -# (C) Pywikipedia bot team, 2003-2012 +# (C) Pywikibot team, 2003-2012 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' +#
import logging import pywikibot diff --git a/scripts/movepages.py b/scripts/movepages.py index bbed63d..24d8434 100644 --- a/scripts/movepages.py +++ b/scripts/movepages.py @@ -32,12 +32,12 @@ # # (C) Leonardo Gregianin, 2006 # (C) Andreas J. Schwab, 2007 -# (C) Pywikipedia bot team, 2006-2013 +# (C) Pywikibot team, 2006-2013 # # Distributed under the terms of the MIT license. # - __version__ = '$Id$' +#
import sys import re diff --git a/scripts/noreferences.py b/scripts/noreferences.py index 253c095..791fb27 100755 --- a/scripts/noreferences.py +++ b/scripts/noreferences.py @@ -33,14 +33,19 @@ bandwidth. Instead, use the -xml parameter, or use another way to generate a list of affected articles """ - +# +# (C) Pywikibot team, 2013 +# +# Distributed under the terms of the MIT license. +# __version__ = '$Id$' +#
import re import sys import pywikibot from pywikibot import i18n -from pywikibot import pagegenerators, catlib +from pywikibot import pagegenerators import editarticle
# This is required for the text that is shown when you run this script @@ -691,8 +696,8 @@ else: if not namespaces: namespaces = [0] - cat = catlib.Category(site, "%s:%s" % (site.category_namespace(), - cat)) + cat = pywikibot.Category(site, "%s:%s" % ( + site.category_namespace(), cat)) gen = pagegenerators.CategorizedPageGenerator(cat) if not gen: pywikibot.showHelp('noreferences') diff --git a/scripts/redirect.py b/scripts/redirect.py index 233cad9..46c2281 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -52,12 +52,13 @@ # (C) Daniel Herding, 2004. # (C) Purodha Blissenbach, 2009. # (C) xqt, 2009-2012 -# (C) Pywikipedia bot team, 2004-2013 +# (C) Pywikibot team, 2004-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' # + import re import datetime import pywikibot diff --git a/scripts/replace.py b/scripts/replace.py index 76f0636..e02cb0c 100755 --- a/scripts/replace.py +++ b/scripts/replace.py @@ -114,16 +114,14 @@
Please type "replace.py -help | more" if you can't read the top of the help. """ -from __future__ import generators # # (C) Daniel Herding & the Pywikipedia team, 2004-2012 # -__version__ = '$Id$' -# # Distributed under the terms of the MIT license. # +__version__ = '$Id$' +#
-import sys import re import time import pywikibot diff --git a/scripts/replicate_wiki.py b/scripts/replicate_wiki.py index 5ed1bd9..c2c80d0 100644 --- a/scripts/replicate_wiki.py +++ b/scripts/replicate_wiki.py @@ -1,13 +1,6 @@ #!/usr/bin/env python -# # -*- coding: utf-8 -*- -# -# (C) Kasper Souren 2012-2013 -# -# Distributed under the terms of the MIT license. -# - -''' +""" This bot replicates all pages (from specific namespaces) in a wiki to a second wiki within one family.
Example: @@ -24,7 +17,14 @@
to replace all occurences of 'Hoofdpagina' with 'Veurblaad' when writing to liwiki. Note that this does not take the origin wiki into account. -''' +""" +# +# (C) Kasper Souren 2012-2013 +# +# Distributed under the terms of the MIT license. +# +__version__ = '$Id$' +#
import sys import re diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py index c6f792a..9dc6d77 100644 --- a/scripts/solve_disambiguation.py +++ b/scripts/solve_disambiguation.py @@ -67,26 +67,22 @@ python solve_disambiguation.py -just -pos:New_Name Old_Name
""" - # # (C) Rob W.W. Hooft, 2003 # (C) Daniel Herding, 2004 # (C) Andre Engels, 2003-2004 # (C) WikiWichtel, 2004 -# (C) Pywikipedia team, 2003-2009 -# -__version__ = '$Id$' +# (C) Pywikibot team, 2003-2013 # # Distributed under the terms of the MIT license. # +__version__ = '$Id$' +#
- -# Standard library imports import re import sys import codecs
-# Application specific imports import pywikibot from pywikibot import editor as editarticle from pywikibot import pagegenerators diff --git a/scripts/template.py b/scripts/template.py index 91ec9ff..4222f5d 100755 --- a/scripts/template.py +++ b/scripts/template.py @@ -100,15 +100,14 @@ # (C) Daniel Herding, 2004 # (C) Rob W.W. Hooft, 2003 # (C) xqt, 2009-2011 -# (C) Pywikipedia team, 2004-2010 +# (C) Pywikibot team, 2004-2010 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' # + import re -import sys -import string import pywikibot from pywikibot import i18n from pywikibot import config, pagegenerators, catlib diff --git a/scripts/touch.py b/scripts/touch.py index 84c2076..c65070b 100755 --- a/scripts/touch.py +++ b/scripts/touch.py @@ -16,9 +16,8 @@ All other parameters will be regarded as a page title; in this case, the bot will only touch a single page. """ - # -# (C) Pywikipedia team +# (C) Pywikibot team, 2013 # __version__ = '$Id$' # diff --git a/scripts/upload.py b/scripts/upload.py index f3aefe4..f913e38 100755 --- a/scripts/upload.py +++ b/scripts/upload.py @@ -20,7 +20,7 @@ """ # # (C) Rob W.W. Hooft, Andre Engels 2003-2004 -# (C) Pywikipedia bot team, 2003-2010 +# (C) Pywikibot team, 2003-2010 # # Distributed under the terms of the MIT license. # diff --git a/scripts/version.py b/scripts/version.py index 7cb2bc7..94d8f65 100755 --- a/scripts/version.py +++ b/scripts/version.py @@ -4,11 +4,12 @@ # # (C) Merlijn 'valhallasw' van Deen, 2007-2008 # (C) xqt, 2010-2012 -# (C) Pywikipedia bot team, 2007-2013 +# (C) Pywikibot team, 2007-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' +#
import sys import pywikibot
pywikibot-commits@lists.wikimedia.org