jenkins-bot has submitted this change and it was merged.
Change subject: Add copyright to several scripts ......................................................................
Add copyright to several scripts
flake8-copyright isn't to be used until https://github.com/savoirfairelinux/flake8-copyright/issues/1 is solved upstream.
Detached from Ie408e360ef686b9
Signed-off-by: xqt info@gno.de Change-Id: I17106731e4da95b5a28625fe899c46aaef3afb5b --- M docs/conf.py M pywikibot/echo.py M pywikibot/families/anarchopedia_family.py M pywikibot/families/battlestarwiki_family.py M pywikibot/families/commons_family.py M pywikibot/families/i18n_family.py M pywikibot/families/incubator_family.py M pywikibot/families/lyricwiki_family.py M pywikibot/families/mediawiki_family.py M pywikibot/families/meta_family.py M pywikibot/families/omegawiki_family.py M pywikibot/families/osm_family.py M pywikibot/families/outreach_family.py M pywikibot/families/species_family.py M pywikibot/families/strategy_family.py M pywikibot/families/test_family.py M pywikibot/families/vikidia_family.py M pywikibot/families/wikia_family.py M pywikibot/families/wikibooks_family.py M pywikibot/families/wikidata_family.py M pywikibot/families/wikimediachapter_family.py M pywikibot/families/wikinews_family.py M pywikibot/families/wikipedia_family.py M pywikibot/families/wikiquote_family.py M pywikibot/families/wikisource_family.py M pywikibot/families/wikitech_family.py M pywikibot/families/wikiversity_family.py M pywikibot/families/wikivoyage_family.py M pywikibot/families/wiktionary_family.py M pywikibot/families/wowwiki_family.py M pywikibot/userinterfaces/cgi_interface.py M pywikibot/userinterfaces/transliteration.py M scripts/blockreview.py M scripts/script_wui.py M tests/checkimages_tests.py M tests/data/fixes.py M tests/data/set-fixes.py M tests/deprecation_tests.py M tests/i18n/pywikibot.py M tests/pwb/print_env.py M tests/pwb/print_locals.py M tests/pwb/print_unicode.py M tests/sparql_tests.py 43 files changed, 204 insertions(+), 2 deletions(-)
Approvals: Lokal Profil: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py index 23f0f48..aa07152 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- """Configuration file for Sphinx.""" # +# (C) Pywikibot team, 2015-2016 +# +# Distributed under the terms of the MIT license. +# # Pywikibot documentation build configuration file, created by # sphinx-quickstart on Wed Nov 5 15:50:05 2014. # diff --git a/pywikibot/echo.py b/pywikibot/echo.py index 6d6587b..2cd92c2 100644 --- a/pywikibot/echo.py +++ b/pywikibot/echo.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Classes and functions for working with the Echo extension.""" +# +# (C) Pywikibot team, 2014-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
import pywikibot diff --git a/pywikibot/families/anarchopedia_family.py b/pywikibot/families/anarchopedia_family.py index bb793ad..31d7323 100644 --- a/pywikibot/families/anarchopedia_family.py +++ b/pywikibot/families/anarchopedia_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Anarchopedia wiki.""" +# +# (C) Pywikibot team, 2006-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/battlestarwiki_family.py b/pywikibot/families/battlestarwiki_family.py index 685d7b1..64ce010 100644 --- a/pywikibot/families/battlestarwiki_family.py +++ b/pywikibot/families/battlestarwiki_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Battlestar Wiki.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/commons_family.py b/pywikibot/families/commons_family.py index 2ffaae6..f2d0572 100644 --- a/pywikibot/families/commons_family.py +++ b/pywikibot/families/commons_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia Commons.""" +# +# (C) Pywikibot team, 2005-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/i18n_family.py b/pywikibot/families/i18n_family.py index 6647623..9e8a206 100644 --- a/pywikibot/families/i18n_family.py +++ b/pywikibot/families/i18n_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Translate Wiki.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/incubator_family.py b/pywikibot/families/incubator_family.py index 493ef9b..9b64784 100644 --- a/pywikibot/families/incubator_family.py +++ b/pywikibot/families/incubator_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Incubator Wiki.""" +# +# (C) Pywikibot team, 2006-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/lyricwiki_family.py b/pywikibot/families/lyricwiki_family.py index 9483c65..3417b4a 100644 --- a/pywikibot/families/lyricwiki_family.py +++ b/pywikibot/families/lyricwiki_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for LyricWiki.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/mediawiki_family.py b/pywikibot/families/mediawiki_family.py index 069634d..9d2d27f 100644 --- a/pywikibot/families/mediawiki_family.py +++ b/pywikibot/families/mediawiki_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for MediaWiki wiki.""" +# +# (C) Pywikibot team, 2006-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/meta_family.py b/pywikibot/families/meta_family.py index 3b30bfd..e33933b 100644 --- a/pywikibot/families/meta_family.py +++ b/pywikibot/families/meta_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Meta Wiki.""" +# +# (C) Pywikibot team, 2005-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/omegawiki_family.py b/pywikibot/families/omegawiki_family.py index a0a6f54..7f64150 100644 --- a/pywikibot/families/omegawiki_family.py +++ b/pywikibot/families/omegawiki_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Omega Wiki.""" +# +# (C) Pywikibot team, 2006-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/osm_family.py b/pywikibot/families/osm_family.py index e2311ee..01a6f22 100644 --- a/pywikibot/families/osm_family.py +++ b/pywikibot/families/osm_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for OpenStreetMap wiki.""" +# +# (C) Pywikibot team, 2009-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/outreach_family.py b/pywikibot/families/outreach_family.py index 412a273..bf08b84 100644 --- a/pywikibot/families/outreach_family.py +++ b/pywikibot/families/outreach_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia outreach wiki.""" +# +# (C) Pywikibot team, 2014-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/species_family.py b/pywikibot/families/species_family.py index 204b39a..7b3b78e 100644 --- a/pywikibot/families/species_family.py +++ b/pywikibot/families/species_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia species wiki.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/strategy_family.py b/pywikibot/families/strategy_family.py index 925254f..ebdaf6c 100644 --- a/pywikibot/families/strategy_family.py +++ b/pywikibot/families/strategy_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia Strategy Wiki.""" +# +# (C) Pywikibot team, 2009-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/test_family.py b/pywikibot/families/test_family.py index 8f8815c..8a37be0 100644 --- a/pywikibot/families/test_family.py +++ b/pywikibot/families/test_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for test.wikipedia.org.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/vikidia_family.py b/pywikibot/families/vikidia_family.py index 4206350..76b5e03 100644 --- a/pywikibot/families/vikidia_family.py +++ b/pywikibot/families/vikidia_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Vikidia.""" +# +# (C) Pywikibot team, 2010-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/wikia_family.py b/pywikibot/families/wikia_family.py index 7f58539..a97a5b0 100644 --- a/pywikibot/families/wikia_family.py +++ b/pywikibot/families/wikia_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikia.""" +# +# (C) Pywikibot team, 2008-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/wikibooks_family.py b/pywikibot/families/wikibooks_family.py index e865a8e..175f9bd 100644 --- a/pywikibot/families/wikibooks_family.py +++ b/pywikibot/families/wikibooks_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikibooks.""" +# +# (C) Pywikibot team, 2005-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wikidata_family.py b/pywikibot/families/wikidata_family.py index 660269a..f5593f1 100644 --- a/pywikibot/families/wikidata_family.py +++ b/pywikibot/families/wikidata_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikidata.""" +# +# (C) Pywikibot team, 2012-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/wikimediachapter_family.py b/pywikibot/families/wikimediachapter_family.py index a6a515a..4d914cc 100644 --- a/pywikibot/families/wikimediachapter_family.py +++ b/pywikibot/families/wikimediachapter_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia chapter wikis.""" +# +# (C) Pywikibot team, 2012-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/wikinews_family.py b/pywikibot/families/wikinews_family.py index 0ff4265..cc074c9 100644 --- a/pywikibot/families/wikinews_family.py +++ b/pywikibot/families/wikinews_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikinews.""" +# +# (C) Pywikibot team, 2005-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index 830949d..dd4dfb4 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikipedia.""" +# +# (C) Pywikibot team, 2004-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wikiquote_family.py b/pywikibot/families/wikiquote_family.py index 4f0a50c..1efde36 100644 --- a/pywikibot/families/wikiquote_family.py +++ b/pywikibot/families/wikiquote_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikiquote.""" +# +# (C) Pywikibot team, 2005-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py index d8f4cd4..622257b 100644 --- a/pywikibot/families/wikisource_family.py +++ b/pywikibot/families/wikisource_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikisource.""" +# +# (C) Pywikibot team, 2004-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wikitech_family.py b/pywikibot/families/wikitech_family.py index f21ba2b..9793659 100644 --- a/pywikibot/families/wikitech_family.py +++ b/pywikibot/families/wikitech_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikitech.""" +# +# (C) Pywikibot team, 2005-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/wikiversity_family.py b/pywikibot/families/wikiversity_family.py index 5ae4022..ed65423 100644 --- a/pywikibot/families/wikiversity_family.py +++ b/pywikibot/families/wikiversity_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikiversity.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wikivoyage_family.py b/pywikibot/families/wikivoyage_family.py index 1f6ac0c..2f827ff 100644 --- a/pywikibot/families/wikivoyage_family.py +++ b/pywikibot/families/wikivoyage_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikivoyage.""" +# +# (C) Pywikibot team, 2012-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/families/wiktionary_family.py b/pywikibot/families/wiktionary_family.py index ab1a2e0..f5a925e 100644 --- a/pywikibot/families/wiktionary_family.py +++ b/pywikibot/families/wiktionary_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wiktionary.""" +# +# (C) Pywikibot team, 2005-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from pywikibot import family diff --git a/pywikibot/families/wowwiki_family.py b/pywikibot/families/wowwiki_family.py index b78c543..4a602aa 100644 --- a/pywikibot/families/wowwiki_family.py +++ b/pywikibot/families/wowwiki_family.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Family module for WOW Wiki.""" +# +# (C) Pywikibot team, 2009-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/pywikibot/userinterfaces/cgi_interface.py b/pywikibot/userinterfaces/cgi_interface.py index 78e812a..ee1640c 100644 --- a/pywikibot/userinterfaces/cgi_interface.py +++ b/pywikibot/userinterfaces/cgi_interface.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """CGI user interface.""" +# +# (C) Pywikibot team, 2007-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
import sys diff --git a/pywikibot/userinterfaces/transliteration.py b/pywikibot/userinterfaces/transliteration.py index 1c6f6d0..e1fac31 100644 --- a/pywikibot/userinterfaces/transliteration.py +++ b/pywikibot/userinterfaces/transliteration.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Module to transliterate text.""" +# +# (C) Pywikibot team, 2006-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
__version__ = '$Id$' diff --git a/scripts/blockreview.py b/scripts/blockreview.py index 7c28d75..5b595ff 100755 --- a/scripts/blockreview.py +++ b/scripts/blockreview.py @@ -10,7 +10,7 @@ """ # # (C) xqt, 2010-2016 -# (C) Pywikibot team, 2016 +# (C) Pywikibot team, 2014-2016 # # Distributed under the terms of the MIT license. # diff --git a/scripts/script_wui.py b/scripts/script_wui.py index e8bc5bb..efbcbc7 100755 --- a/scripts/script_wui.py +++ b/scripts/script_wui.py @@ -22,6 +22,12 @@ python pwb.py script_wui -dir:. Default operating mode. """ +# +# (C) Dr. Trigon, 2012-2014 +# (C) Pywikibot team, 2014-2016 +# +# Distributed under the terms of the MIT license. +# # @package script_wui # @brief Script WikiUserInterface (WUI) Bot # diff --git a/tests/checkimages_tests.py b/tests/checkimages_tests.py index b6104e0..0ab4af0 100644 --- a/tests/checkimages_tests.py +++ b/tests/checkimages_tests.py @@ -1,6 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """Unit tests for checkimages script.""" +# +# (C) Pywikibot team, 2015-2016 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
from scripts import checkimages diff --git a/tests/data/fixes.py b/tests/data/fixes.py index 5729aec..6e34568 100644 --- a/tests/data/fixes.py +++ b/tests/data/fixes.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Collection of fixes for tests.""" +# +# (C) Pywikibot team, 2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
# flake8 cannot detect that fixes is defined via pywikibot.fixes diff --git a/tests/data/set-fixes.py b/tests/data/set-fixes.py index 6a6bdda..5077e37 100644 --- a/tests/data/set-fixes.py +++ b/tests/data/set-fixes.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """Fixes implementation which overwrites the variable.""" +# +# (C) Pywikibot team, 2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
# Just kill the old value suffices diff --git a/tests/deprecation_tests.py b/tests/deprecation_tests.py index 53d7bce..3080c58 100644 --- a/tests/deprecation_tests.py +++ b/tests/deprecation_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests for deprecation tools.""" # -# (C) Pywikibot team, 2014 +# (C) Pywikibot team, 2014-2016 # # Distributed under the terms of the MIT license. # diff --git a/tests/i18n/pywikibot.py b/tests/i18n/pywikibot.py index 47f0ac4..39d2eca 100644 --- a/tests/i18n/pywikibot.py +++ b/tests/i18n/pywikibot.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- """i18n message bundle called 'pywikibot' to fool the i18n loader.""" +# +# (C) Pywikibot team, 2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
msg = {} diff --git a/tests/pwb/print_env.py b/tests/pwb/print_env.py index e549d38..b6ea59b 100644 --- a/tests/pwb/print_env.py +++ b/tests/pwb/print_env.py @@ -1,6 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """Script that forms part of pwb_tests.""" +# +# (C) Pywikibot team, 2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
import os diff --git a/tests/pwb/print_locals.py b/tests/pwb/print_locals.py index 01765ba..de8b792 100644 --- a/tests/pwb/print_locals.py +++ b/tests/pwb/print_locals.py @@ -1,6 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """Script that forms part of pwb_tests.""" +# +# (C) Pywikibot team, 2013-2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
import os.path diff --git a/tests/pwb/print_unicode.py b/tests/pwb/print_unicode.py index f3a723f..b8505cd 100644 --- a/tests/pwb/print_unicode.py +++ b/tests/pwb/print_unicode.py @@ -1,6 +1,11 @@ #!/usr/bin/python # -*- coding: utf-8 -*- """Script that forms part of pwb_tests.""" +# +# (C) Pywikibot team, 2015 +# +# Distributed under the terms of the MIT license. +# from __future__ import absolute_import, unicode_literals
import pywikibot diff --git a/tests/sparql_tests.py b/tests/sparql_tests.py index 94a078e..a19d582 100644 --- a/tests/sparql_tests.py +++ b/tests/sparql_tests.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- """Test cases for the SPARQL API.""" # +# (C) Pywikibot team, 2016 +# # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals
pywikibot-commits@lists.wikimedia.org