lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
April 2017
----- 2024 -----
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
2 participants
100 discussions
Start a n
N
ew thread
[Gerrit] pywikibot/core[master]: site_detect.py: Check the response in _parse_post_117 for se...
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/349156
) Change subject: site_detect.py: Check the response in _parse_post_117 for server errors ...................................................................... site_detect.py: Check the response in _parse_post_117 for server errors Bug: T160355 Change-Id: I6e762778327de02a01772c649f2b22d2e4dd96d7 --- M pywikibot/site_detect.py 1 file changed, 14 insertions(+), 6 deletions(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/pywikibot/site_detect.py b/pywikibot/site_detect.py index d77a953..d4bf878 100644 --- a/pywikibot/site_detect.py +++ b/pywikibot/site_detect.py @@ -56,12 +56,7 @@ if fromurl.endswith("$1"): fromurl = fromurl[:-2] r = fetch(fromurl) - if r.status == 503: - raise ServerError('Service Unavailable') - elif r.status == 500: - raise ServerError('Internal Server Error') - elif r.status == 200 and SERVER_DB_ERROR_MSG in r.content: - raise ServerError('Server cannot access the database') + check_response(r) if fromurl != r.data.url: pywikibot.log('{0} redirected to {1}'.format(fromurl, r.data.url)) @@ -87,6 +82,8 @@ if self.api: try: self._parse_post_117() + except ServerError: + raise except Exception as e: pywikibot.log('MW 1.17+ detection failed: {0!r}'.format(e)) @@ -169,6 +166,7 @@ def _parse_post_117(self): """Parse 1.17+ siteinfo data.""" response = fetch(self.api + '?action=query&meta=siteinfo&format=json') + check_response(response) # remove preleading newlines and Byte Order Mark (BOM), see T128992 content = response.content.strip().lstrip('\uFEFF') info = json.loads(content) @@ -299,3 +297,13 @@ self.set_api_url(attrs['href']) elif tag == 'script' and 'src' in attrs: self.set_api_url(attrs['src']) + + +def check_response(response): + """Raise ServerError if the response indicates a server error.""" + if response.status == 503: + raise ServerError('Service Unavailable') + elif response.status == 500: + raise ServerError('Internal Server Error') + elif response.status == 200 and SERVER_DB_ERROR_MSG in response.content: + raise ServerError('Server cannot access the database') -- To view, visit
https://gerrit.wikimedia.org/r/349156
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I6e762778327de02a01772c649f2b22d2e4dd96d7 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years
1
0
0
0
[Gerrit] pywikibot/core[master]: Fix invalid escape sequences
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348968
) Change subject: Fix invalid escape sequences ...................................................................... Fix invalid escape sequences These sequences raise DeprecationWarning under Python 3.6. Change-Id: I07bc60af045deafd1371cec9e98656810846c555 --- M tests/i18n_tests.py M tests/pagegenerators_tests.py 2 files changed, 10 insertions(+), 6 deletions(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py index 355f5fd..72e69a5 100644 --- a/tests/i18n_tests.py +++ b/tests/i18n_tests.py @@ -300,9 +300,13 @@ def testMultipleNonNumbers(self): """Test error handling for multiple non-numbers.""" - with self.assertRaisesRegex(ValueError, "invalid literal for int\(\) with base 10: 'drei'"): + with self.assertRaisesRegex( + ValueError, r"invalid literal for int\(\) with base 10: 'drei'" + ): i18n.twntranslate('de', 'test-multiple-plurals', ["drei", "1", 1]) - with self.assertRaisesRegex(ValueError, "invalid literal for int\(\) with base 10: 'elf'"): + with self.assertRaisesRegex( + ValueError, r"invalid literal for int\(\) with base 10: 'elf'" + ): i18n.twntranslate('de', 'test-multiple-plurals', {'action': u'Ändere', 'line': "elf", 'page': 2}) diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 50628bd..3ecc433 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -1085,8 +1085,8 @@ """Test -onlyif without qualifiers.""" gf = pagegenerators.GeneratorFactory(site=self.site) gf.handleArg('-page:Q15745378') - gf.handleArg('-onlyif:P1476=International Journal of Minerals\, ' - 'Metallurgy\, and Materials') + gf.handleArg('-onlyif:P1476=International Journal of Minerals\\, ' + 'Metallurgy\\, and Materials') gen = gf.getCombinedGenerator() self.assertIsNotNone(gen) self.assertEqual(len(set(gen)), 1) @@ -1095,8 +1095,8 @@ """Test -onlyifnot without qualifiers.""" gf = pagegenerators.GeneratorFactory(site=self.site) gf.handleArg('-page:Q15745378') - gf.handleArg('-onlyifnot:P1476=International Journal of Minerals\, ' - 'Metallurgy\, and Materials') + gf.handleArg('-onlyifnot:P1476=International Journal of Minerals\\, ' + 'Metallurgy\\, and Materials') gen = gf.getCombinedGenerator() self.assertIsNotNone(gen) self.assertEqual(len(set(gen)), 0) -- To view, visit
https://gerrit.wikimedia.org/r/348968
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I07bc60af045deafd1371cec9e98656810846c555 Gerrit-PatchSet: 3 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years
1
0
0
0
Fixed: wikimedia/pywikibot-core#3994 (master - 913bda2)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3994 Status: Fixed Duration: 2 hours, 10 minutes, and 58 seconds Commit: 913bda2 (master) Author: jenkins-bot Message: Merge "Cleanup empty __init__.py files" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/41b213c10b1c...913bda20…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/223810963
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years
1
0
0
0
[Gerrit] pywikibot/core[master]: Cleanup empty __init__.py files
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348949
) Change subject: Cleanup empty __init__.py files ...................................................................... Cleanup empty __init__.py files Change-Id: I1db5ab6bae9d9d9121483a17845d8b9bdd7624d6 --- M pywikibot/comms/__init__.py M pywikibot/data/__init__.py M pywikibot/families/__init__.py M pywikibot/userinterfaces/__init__.py 4 files changed, 0 insertions(+), 32 deletions(-) Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/comms/__init__.py b/pywikibot/comms/__init__.py index f3313f5..89d3d31 100644 --- a/pywikibot/comms/__init__.py +++ b/pywikibot/comms/__init__.py @@ -1,10 +1,2 @@ # -*- coding: utf-8 -*- """Communication layer.""" -# -# (C) Pywikibot team, 2007-2008 -# -# Distributed under the terms of the MIT license. -# -from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' diff --git a/pywikibot/data/__init__.py b/pywikibot/data/__init__.py index 66fd7c8..fbd6a50 100644 --- a/pywikibot/data/__init__.py +++ b/pywikibot/data/__init__.py @@ -1,10 +1,2 @@ # -*- coding: utf-8 -*- """Module providing several layers of data access to the wiki.""" -# -# (C) Pywikibot team, 2007-2014 -# -# Distributed under the terms of the MIT license. -# -from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' diff --git a/pywikibot/families/__init__.py b/pywikibot/families/__init__.py index e40db21..e8bf3ab 100644 --- a/pywikibot/families/__init__.py +++ b/pywikibot/families/__init__.py @@ -1,10 +1,2 @@ # -*- coding: utf-8 -*- """Families package.""" -# -# (C) Pywikibot team, 2007 -# -# Distributed under the terms of the MIT license. -# -from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' diff --git a/pywikibot/userinterfaces/__init__.py b/pywikibot/userinterfaces/__init__.py index fb83868..c721338 100644 --- a/pywikibot/userinterfaces/__init__.py +++ b/pywikibot/userinterfaces/__init__.py @@ -1,10 +1,2 @@ # -*- coding: utf-8 -*- """User interfaces.""" -# -# (C) Pywikibot team, 2007 -# -# Distributed under the terms of the MIT license. -# -from __future__ import absolute_import, unicode_literals - -__version__ = '$Id$' -- To view, visit
https://gerrit.wikimedia.org/r/348949
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I1db5ab6bae9d9d9121483a17845d8b9bdd7624d6 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: jenkins-bot <>
7 years
1
0
0
0
Broken: wikimedia/pywikibot-core#3992 (master - 1c723e1)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3992 Status: Broken Duration: 2 hours, 21 minutes, and 45 seconds Commit: 1c723e1 (master) Author: jenkins-bot Message: Merge "Remove __version__ variable from the modules of the test package" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/e36e2cc39cc0...1c723e1e…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/223598007
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years
1
0
0
0
Broken: wikimedia/pywikibot-core#3991 (master - e36e2cc)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3991 Status: Broken Duration: 2 hours, 22 minutes, and 3 seconds Commit: e36e2cc (master) Author: xqt Message: [doc] update pywikibot/README.rst - also fix alignment Change-Id: Ifb7aab9f6958de259833f12e19ecf84a4d8d9168 View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/c96a406680c7...e36e2cc3…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/223580665
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years
1
0
0
0
[Gerrit] pywikibot/core[master]: Do not use the deprecated pywikibot.setAction() in makecat.py
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/180517
) Change subject: Do not use the deprecated pywikibot.setAction() in makecat.py ...................................................................... Do not use the deprecated pywikibot.setAction() in makecat.py Change-Id: Ie860b2aa027ef74646ec1b91e1e9c5e3fe18bb33 --- M scripts/makecat.py 1 file changed, 16 insertions(+), 13 deletions(-) Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/makecat.py b/scripts/makecat.py index d9ed2bf..c5d1462 100755 --- a/scripts/makecat.py +++ b/scripts/makecat.py @@ -37,7 +37,7 @@ L(ist) - show current list of pages to include or to check """ # (C) Andre Engels, 2004 -# (C) Pywikibot team, 2005-2014 +# (C) Pywikibot team, 2005-2017 # # Distributed under the terms of the MIT license. # @@ -68,7 +68,7 @@ return True -def include(pl, checklinks=True, realinclude=True, linkterm=None): +def include(pl, checklinks=True, realinclude=True, linkterm=None, summary=''): cl = checklinks if linkterm: actualworkingcat = pywikibot.Category(mysite, workingcat.title(), @@ -90,11 +90,13 @@ for c in cats: if c in parentcats: if removeparent: - pl.change_category(actualworkingcat) + pl.change_category(actualworkingcat, + summary=summary) break else: pl.put(textlib.replaceCategoryLinks( - text, cats + [actualworkingcat], site=pl.site)) + text, cats + [actualworkingcat], site=pl.site), + summary=summary) if cl: if checkforward: for page2 in pl.linkedPages(): @@ -108,7 +110,7 @@ checked[refPage] = refPage -def asktoadd(pl): +def asktoadd(pl, summary): if pl.site != mysite: return if pl.isRedirectPage(): @@ -125,7 +127,7 @@ # (needs the support for 'other options') answer = pywikibot.input("[y]es/[n]o/[i]gnore/[o]ther options?") if answer == 'y': - include(pl) + include(pl, summary=summary) break if answer == 'c': include(pl, realinclude=False) @@ -135,9 +137,9 @@ if not pl.isRedirectPage(): linkterm = pywikibot.input( u"In what manner should it be alphabetized?") - include(pl, linkterm=linkterm) + include(pl, linkterm=linkterm, summary=summary) break - include(pl) + include(pl, summary=summary) break elif answer == 'n': excludefile.write('%s\n' % pl.title()) @@ -157,7 +159,7 @@ pagetitle = pywikibot.input("Specify page to add:") page = pywikibot.Page(pywikibot.Site(), pagetitle) if page not in checked.keys(): - include(page) + include(page, summary=summary) elif answer == 'x': if pl.exists(): if pl.isRedirectPage(): @@ -165,7 +167,7 @@ u"Redirect page. Will be included normally.") include(pl, realinclude=False) else: - include(pl, checklinks=False) + include(pl, checklinks=False, summary=summary) else: pywikibot.output(u"Page does not exist; not added.") break @@ -215,7 +217,8 @@ sys.exit(0) mysite = pywikibot.Site() - pywikibot.setAction(i18n.twtranslate(mysite, 'makecat-create', {'cat': workingcatname})) + summary = i18n.twtranslate(mysite, 'makecat-create', + {'cat': workingcatname}) workingcat = pywikibot.Category(mysite, u'%s:%s' % (mysite.namespaces.CATEGORY, @@ -271,13 +274,13 @@ for pl in articles: checked[pl] = pl - include(pl) + include(pl, summary=summary) gen = pagegenerators.DequePreloadingGenerator(tocheck) for page in gen: if checkbroken or page.exists(): - asktoadd(page) + asktoadd(page, summary) finally: try: -- To view, visit
https://gerrit.wikimedia.org/r/180517
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ie860b2aa027ef74646ec1b91e1e9c5e3fe18bb33 Gerrit-PatchSet: 4 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <ricordisamoa(a)openmailbox.org> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Ladsgroup <Ladsgroup(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl> Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org> Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years
1
0
0
0
[Gerrit] pywikibot/core[master]: Remove __version__ variable from the modules of the test pac...
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348942
) Change subject: Remove __version__ variable from the modules of the test package ...................................................................... Remove __version__ variable from the modules of the test package Bug: T87409 Change-Id: I135e87fb67ca59aff31153dcf8132776fdfae14f --- M tests/__init__.py M tests/add_text_tests.py M tests/api_tests.py M tests/archivebot_tests.py M tests/aspects.py M tests/basepage_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/cosmetic_changes_tests.py M tests/data_ingestion_tests.py M tests/deletionbot_tests.py M tests/deprecation_tests.py M tests/diff_tests.py M tests/disambredir_tests.py M tests/dry_api_tests.py M tests/dry_site_tests.py M tests/edit_failure_tests.py M tests/edit_tests.py M tests/exceptions_tests.py M tests/family_tests.py M tests/file_tests.py M tests/fixes_tests.py M tests/flow_edit_tests.py M tests/flow_tests.py M tests/http_tests.py M tests/i18n_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/link_tests.py M tests/logentry_tests.py M tests/login_tests.py M tests/mediawikiversion_tests.py M tests/namespace_tests.py M tests/oauth_tests.py M tests/page_tests.py M tests/pagegenerators_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_tests.py M tests/python_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_detect_tests.py M tests/site_tests.py M tests/template_bot_tests.py M tests/tests_tests.py M tests/textlib_tests.py M tests/thread_tests.py M tests/timestamp_tests.py M tests/timestripper_tests.py M tests/tk_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/ui_tests.py M tests/upload_tests.py M tests/uploadbot_tests.py M tests/user_tests.py M tests/utils.py M tests/weblib_tests.py M tests/weblinkchecker_tests.py M tests/wikibase_edit_tests.py M tests/wikibase_tests.py M tests/wikidataquery_tests.py M tests/wikistats_tests.py M tests/xmlreader_tests.py 78 files changed, 3 insertions(+), 168 deletions(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/tests/__init__.py b/tests/__init__.py index 1d51dcb..9b5de60 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, print_function, unicode_literals -__version__ = '$Id$' - import functools import os import warnings diff --git a/tests/add_text_tests.py b/tests/add_text_tests.py index 02d9bc8..d696809 100644 --- a/tests/add_text_tests.py +++ b/tests/add_text_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from scripts.add_text import add_text diff --git a/tests/api_tests.py b/tests/api_tests.py index 008b85e..6c2437a 100644 --- a/tests/api_tests.py +++ b/tests/api_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import datetime import types diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py index dc0e890..3b4971c 100644 --- a/tests/archivebot_tests.py +++ b/tests/archivebot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from datetime import datetime, timedelta import pywikibot diff --git a/tests/aspects.py b/tests/aspects.py index b194da8..0d3ace2 100644 --- a/tests/aspects.py +++ b/tests/aspects.py @@ -12,7 +12,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, print_function, unicode_literals -__version__ = '$Id$' """ TODO: diff --git a/tests/basepage_tests.py b/tests/basepage_tests.py index 7a91fbb..b30c806 100644 --- a/tests/basepage_tests.py +++ b/tests/basepage_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.page import BasePage from tests.aspects import ( diff --git a/tests/bot_tests.py b/tests/bot_tests.py index f99eee1..47c3618 100644 --- a/tests/bot_tests.py +++ b/tests/bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# import sys import pywikibot diff --git a/tests/cache_tests.py b/tests/cache_tests.py index 2e8e96b..f32eda4 100644 --- a/tests/cache_tests.py +++ b/tests/cache_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - from pywikibot.site import BaseSite import scripts.maintenance.cache as cache diff --git a/tests/category_bot_tests.py b/tests/category_bot_tests.py index 29dad8e..28df25b 100644 --- a/tests/category_bot_tests.py +++ b/tests/category_bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - try: from unittest.mock import patch, Mock except ImportError: diff --git a/tests/category_tests.py b/tests/category_tests.py index f5b9fef..b4d5c70 100644 --- a/tests/category_tests.py +++ b/tests/category_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot import pywikibot.page diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py index cc3947c..02cce31 100644 --- a/tests/cosmetic_changes_tests.py +++ b/tests/cosmetic_changes_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.cosmetic_changes import CosmeticChangesToolkit from tests.aspects import unittest, TestCase diff --git a/tests/data_ingestion_tests.py b/tests/data_ingestion_tests.py index e66c891..92dd12c 100644 --- a/tests/data_ingestion_tests.py +++ b/tests/data_ingestion_tests.py @@ -8,8 +8,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from scripts import data_ingestion from tests import join_data_path, join_images_path diff --git a/tests/deletionbot_tests.py b/tests/deletionbot_tests.py index 8c950e6..e054288 100644 --- a/tests/deletionbot_tests.py +++ b/tests/deletionbot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot import pywikibot.page diff --git a/tests/deprecation_tests.py b/tests/deprecation_tests.py index 56f127d..dfee80b 100644 --- a/tests/deprecation_tests.py +++ b/tests/deprecation_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.tools import ( deprecated, deprecate_arg, deprecated_args, add_full_name, remove_last_args ) diff --git a/tests/diff_tests.py b/tests/diff_tests.py index 82d1547..26fdb80 100644 --- a/tests/diff_tests.py +++ b/tests/diff_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import sys from pywikibot.diff import cherry_pick, html_comparator, PatchManager diff --git a/tests/disambredir_tests.py b/tests/disambredir_tests.py index 701ad6c..8e108bf 100644 --- a/tests/disambredir_tests.py +++ b/tests/disambredir_tests.py @@ -11,9 +11,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import pywikibot from scripts import disambredir diff --git a/tests/dry_api_tests.py b/tests/dry_api_tests.py index f4a4c4a..ed405af 100644 --- a/tests/dry_api_tests.py +++ b/tests/dry_api_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import datetime import pywikibot diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py index aeea493..b384e48 100644 --- a/tests/dry_site_tests.py +++ b/tests/dry_site_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import pywikibot from pywikibot.tools import deprecated from pywikibot.site import must_be, need_version diff --git a/tests/edit_failure_tests.py b/tests/edit_failure_tests.py index 5c8fcb9..f77bdc2 100644 --- a/tests/edit_failure_tests.py +++ b/tests/edit_failure_tests.py @@ -14,8 +14,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot import ( Error, diff --git a/tests/edit_tests.py b/tests/edit_tests.py index 31f6c83..62f8750 100644 --- a/tests/edit_tests.py +++ b/tests/edit_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import time import pywikibot diff --git a/tests/exceptions_tests.py b/tests/exceptions_tests.py index ef300e0..5681101 100644 --- a/tests/exceptions_tests.py +++ b/tests/exceptions_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from tests.aspects import unittest, DeprecationTestCase diff --git a/tests/family_tests.py b/tests/family_tests.py index 1482cad..97778df 100644 --- a/tests/family_tests.py +++ b/tests/family_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot.site from pywikibot.exceptions import UnknownFamily diff --git a/tests/file_tests.py b/tests/file_tests.py index 9ee5a4b..2065bbb 100644 --- a/tests/file_tests.py +++ b/tests/file_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import os import pywikibot diff --git a/tests/fixes_tests.py b/tests/fixes_tests.py index d6e67e4..ea694f1 100644 --- a/tests/fixes_tests.py +++ b/tests/fixes_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot import fixes from tests import unittest, join_data_path diff --git a/tests/flow_edit_tests.py b/tests/flow_edit_tests.py index 5287f22..5276f9f 100644 --- a/tests/flow_edit_tests.py +++ b/tests/flow_edit_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.exceptions import LockedPage from pywikibot.flow import Board, Topic, Post from pywikibot.tools import UnicodeType as unicode diff --git a/tests/flow_tests.py b/tests/flow_tests.py index f3c4c54..4dc1a82 100644 --- a/tests/flow_tests.py +++ b/tests/flow_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.exceptions import NoPage from pywikibot.flow import Board, Topic, Post from pywikibot.tools import UnicodeType as unicode diff --git a/tests/http_tests.py b/tests/http_tests.py index af3e5d9..1d730b0 100644 --- a/tests/http_tests.py +++ b/tests/http_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import json import re import warnings diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py index 355f5fd..b4ec0d7 100644 --- a/tests/i18n_tests.py +++ b/tests/i18n_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot import i18n, bot, plural diff --git a/tests/interwiki_graph_tests.py b/tests/interwiki_graph_tests.py index 967547c..c2fd0b7 100644 --- a/tests/interwiki_graph_tests.py +++ b/tests/interwiki_graph_tests.py @@ -8,8 +8,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot import interwiki_graph from tests.aspects import unittest, require_modules, SiteAttributeTestCase diff --git a/tests/interwiki_link_tests.py b/tests/interwiki_link_tests.py index e7e852c..de9aaac 100644 --- a/tests/interwiki_link_tests.py +++ b/tests/interwiki_link_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot import config2 as config from pywikibot.exceptions import InvalidTitle diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py index 708acd3..d5618db 100644 --- a/tests/interwikidata_tests.py +++ b/tests/interwikidata_tests.py @@ -7,8 +7,6 @@ # from __future__ import unicode_literals, absolute_import -__version__ = '$Id$' - import pywikibot from pywikibot import Link diff --git a/tests/isbn_tests.py b/tests/isbn_tests.py index da97687..57a55c8 100644 --- a/tests/isbn_tests.py +++ b/tests/isbn_tests.py @@ -9,8 +9,6 @@ import pywikibot -__version__ = '$Id$' - try: from stdnum.exceptions import ValidationError as StdNumValidationError except ImportError: diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py index ed1dd19..55d2daa 100644 --- a/tests/l10n_tests.py +++ b/tests/l10n_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot import i18n from pywikibot.textlib import extract_templates_and_params_regex_simple diff --git a/tests/link_tests.py b/tests/link_tests.py index c5ef4b4..9df58b0 100644 --- a/tests/link_tests.py +++ b/tests/link_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot import config2 as config diff --git a/tests/logentry_tests.py b/tests/logentry_tests.py index 2122637..27bf718 100644 --- a/tests/logentry_tests.py +++ b/tests/logentry_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import datetime import pywikibot diff --git a/tests/login_tests.py b/tests/login_tests.py index b40ea7c..a1ee8ac 100644 --- a/tests/login_tests.py +++ b/tests/login_tests.py @@ -11,8 +11,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# from collections import defaultdict try: import unittest.mock as mock diff --git a/tests/mediawikiversion_tests.py b/tests/mediawikiversion_tests.py index cabd78e..5535f53 100644 --- a/tests/mediawikiversion_tests.py +++ b/tests/mediawikiversion_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.tools import MediaWikiVersion diff --git a/tests/namespace_tests.py b/tests/namespace_tests.py index 8b8f107..9897f03 100644 --- a/tests/namespace_tests.py +++ b/tests/namespace_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from collections import Iterable from pywikibot.site import Namespace, NamespacesDict diff --git a/tests/oauth_tests.py b/tests/oauth_tests.py index 7f3f3df..cd211a2 100644 --- a/tests/oauth_tests.py +++ b/tests/oauth_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import os from pywikibot.login import OauthLoginManager diff --git a/tests/page_tests.py b/tests/page_tests.py index 3090f4d..6a25368 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -8,9 +8,6 @@ from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - - import pickle import re try: diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 50628bd..674c13c 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -37,9 +37,6 @@ ) from tests.thread_tests import GeneratorIntersectTestCase - -__version__ = '$Id$' - en_wp_page_titles = ( # just a bunch of randomly selected titles for English Wikipedia tests u"Eastern Sayan", diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py index f1162f7..4bab0cf 100644 --- a/tests/paraminfo_tests.py +++ b/tests/paraminfo_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - from pywikibot.family import WikimediaFamily from pywikibot.page import Claim, Property from pywikibot.site import DataSite diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py index 79d621d..ad91911 100644 --- a/tests/patrolbot_tests.py +++ b/tests/patrolbot_tests.py @@ -7,8 +7,7 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# + try: from scripts import patrol except ImportError: @@ -16,6 +15,7 @@ from tests.aspects import require_modules, unittest, DefaultDrySiteTestCase + DUMMY_PAGE_TUPLES = """ This is some text above the entries: diff --git a/tests/plural_tests.py b/tests/plural_tests.py index f1206d6..62a9ec0 100644 --- a/tests/plural_tests.py +++ b/tests/plural_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot import plural from tests.aspects import ( diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py index aa3945a..21e9762 100644 --- a/tests/proofreadpage_tests.py +++ b/tests/proofreadpage_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import json import pywikibot diff --git a/tests/protectbot_tests.py b/tests/protectbot_tests.py index ae31f9b..6eb7678 100644 --- a/tests/protectbot_tests.py +++ b/tests/protectbot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot import pywikibot.page diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py index da8447c..894780b 100644 --- a/tests/pwb_tests.py +++ b/tests/pwb_tests.py @@ -13,8 +13,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import sys from tests import join_tests_path, create_path_func diff --git a/tests/python_tests.py b/tests/python_tests.py index f57f514..0320f8e 100755 --- a/tests/python_tests.py +++ b/tests/python_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import unicodedata try: import unicodedata2 diff --git a/tests/redirect_bot_tests.py b/tests/redirect_bot_tests.py index feb5bfa..f44fd71 100644 --- a/tests/redirect_bot_tests.py +++ b/tests/redirect_bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - try: from unittest.mock import Mock, patch except ImportError: diff --git a/tests/reflinks_tests.py b/tests/reflinks_tests.py index 690f4b9..26b7193 100644 --- a/tests/reflinks_tests.py +++ b/tests/reflinks_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from scripts.reflinks import XmlDumpPageGenerator, ReferencesRobot, main from tests import join_xml_data_path diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py index ca2ae36..938574d 100644 --- a/tests/replacebot_tests.py +++ b/tests/replacebot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot import fixes diff --git a/tests/script_tests.py b/tests/script_tests.py index d3d3fd4..6bc8c32 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -6,7 +6,6 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, print_function, unicode_literals -__version__ = '$Id$' import os import sys diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py index 15616ea..a3cbfe8 100644 --- a/tests/site_detect_tests.py +++ b/tests/site_detect_tests.py @@ -16,9 +16,6 @@ from tests.aspects import unittest, TestCase -__version__ = '$Id$' - - class SiteDetectionTestCase(TestCase): """Testcase for MediaWiki detection and site object creation.""" diff --git a/tests/site_tests.py b/tests/site_tests.py index 1dffc0d..ba943c1 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import json import os import pickle diff --git a/tests/template_bot_tests.py b/tests/template_bot_tests.py index af16d80..df1bcfa 100644 --- a/tests/template_bot_tests.py +++ b/tests/template_bot_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot.pagegenerators import XMLDumpPageGenerator diff --git a/tests/tests_tests.py b/tests/tests_tests.py index 910b306..78b4738 100755 --- a/tests/tests_tests.py +++ b/tests/tests_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from tests.aspects import unittest, TestCase diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py index f98bb42..c28407b 100644 --- a/tests/textlib_tests.py +++ b/tests/textlib_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import codecs import functools import os diff --git a/tests/thread_tests.py b/tests/thread_tests.py index f0e2cc0..1069287 100644 --- a/tests/thread_tests.py +++ b/tests/thread_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from tests.aspects import unittest, TestCase from pywikibot.tools import ThreadedGenerator, intersect_generators diff --git a/tests/timestamp_tests.py b/tests/timestamp_tests.py index df29c6b..0e26337 100644 --- a/tests/timestamp_tests.py +++ b/tests/timestamp_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import calendar import datetime diff --git a/tests/timestripper_tests.py b/tests/timestripper_tests.py index ec2d0b5..928848a 100644 --- a/tests/timestripper_tests.py +++ b/tests/timestripper_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import datetime import re diff --git a/tests/tk_tests.py b/tests/tk_tests.py index 72c6810..0fee1b4 100644 --- a/tests/tk_tests.py +++ b/tests/tk_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import os from pywikibot.tools import PY2 diff --git a/tests/tools_chars_tests.py b/tests/tools_chars_tests.py index be5fa93..dd90b95 100644 --- a/tests/tools_chars_tests.py +++ b/tests/tools_chars_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import unicodedata from distutils.version import StrictVersion diff --git a/tests/tools_formatter_tests.py b/tests/tools_formatter_tests.py index 61f24f1..34a187d 100644 --- a/tests/tools_formatter_tests.py +++ b/tests/tools_formatter_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# from pywikibot.tools import formatter from pywikibot.tools import UnicodeMixin diff --git a/tests/tools_ip_tests.py b/tests/tools_ip_tests.py index 8134324..4bcd31c 100644 --- a/tests/tools_ip_tests.py +++ b/tests/tools_ip_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from distutils.version import StrictVersion from pywikibot.tools import ip diff --git a/tests/tools_tests.py b/tests/tools_tests.py index c450966..bb57c87 100644 --- a/tests/tools_tests.py +++ b/tests/tools_tests.py @@ -7,8 +7,6 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import collections import decimal import inspect diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py index 0a7d8c7..db01c3e 100644 --- a/tests/ui_options_tests.py +++ b/tests/ui_options_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# from pywikibot import bot, bot_choice from tests.aspects import unittest, TestCase diff --git a/tests/ui_tests.py b/tests/ui_tests.py index 1a52166..4f27e30 100644 --- a/tests/ui_tests.py +++ b/tests/ui_tests.py @@ -26,8 +26,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import inspect import io import logging diff --git a/tests/upload_tests.py b/tests/upload_tests.py index fb830dd..dc3ec5b 100644 --- a/tests/upload_tests.py +++ b/tests/upload_tests.py @@ -11,8 +11,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from tests import join_images_path diff --git a/tests/uploadbot_tests.py b/tests/uploadbot_tests.py index 769b65e..8481c28 100644 --- a/tests/uploadbot_tests.py +++ b/tests/uploadbot_tests.py @@ -11,9 +11,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import os from scripts import upload diff --git a/tests/user_tests.py b/tests/user_tests.py index 1ca961f..60995e5 100644 --- a/tests/user_tests.py +++ b/tests/user_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import pywikibot from pywikibot import User diff --git a/tests/utils.py b/tests/utils.py index 024f1d5..f73f48e 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -6,8 +6,7 @@ # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# + import inspect import json import locale diff --git a/tests/weblib_tests.py b/tests/weblib_tests.py index 0d1d661..33f88bb 100644 --- a/tests/weblib_tests.py +++ b/tests/weblib_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot.tools import PY2 if not PY2: diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py index 56be6d7..be84bab 100644 --- a/tests/weblinkchecker_tests.py +++ b/tests/weblinkchecker_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - import datetime from pywikibot.tools import PY2 diff --git a/tests/wikibase_edit_tests.py b/tests/wikibase_edit_tests.py index f503b7f..20a4a77 100644 --- a/tests/wikibase_edit_tests.py +++ b/tests/wikibase_edit_tests.py @@ -12,9 +12,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import time import pywikibot diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py index f4a155a..8cdaf70 100644 --- a/tests/wikibase_tests.py +++ b/tests/wikibase_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import copy import json diff --git a/tests/wikidataquery_tests.py b/tests/wikidataquery_tests.py index 075612a..3693104 100644 --- a/tests/wikidataquery_tests.py +++ b/tests/wikidataquery_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import os import time diff --git a/tests/wikistats_tests.py b/tests/wikistats_tests.py index ad2ba74..f866eaf 100644 --- a/tests/wikistats_tests.py +++ b/tests/wikistats_tests.py @@ -7,9 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' -# - import sys from pywikibot.data.wikistats import WikiStats, csv diff --git a/tests/xmlreader_tests.py b/tests/xmlreader_tests.py index ac6cfe9..dae9ff5 100644 --- a/tests/xmlreader_tests.py +++ b/tests/xmlreader_tests.py @@ -7,8 +7,6 @@ # from __future__ import absolute_import, unicode_literals -__version__ = '$Id$' - from pywikibot import xmlreader from tests import join_xml_data_path -- To view, visit
https://gerrit.wikimedia.org/r/348942
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I135e87fb67ca59aff31153dcf8132776fdfae14f Gerrit-PatchSet: 7 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
7 years
1
0
0
0
[Gerrit] pywikibot/core[master]: [doc] update pywikibot/README.rst
by jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348934
) Change subject: [doc] update pywikibot/README.rst ...................................................................... [doc] update pywikibot/README.rst - also fix alignment Change-Id: Ifb7aab9f6958de259833f12e19ecf84a4d8d9168 --- M pywikibot/README.rst 1 file changed, 125 insertions(+), 119 deletions(-) Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/README.rst b/pywikibot/README.rst index 5f77c30..deb70bb 100644 --- a/pywikibot/README.rst +++ b/pywikibot/README.rst @@ -15,112 +15,116 @@ The contents of the package --------------------------- - +----------------------------------------------------------------------------------+ - | Library routines | - +===========================+======================================================+ - | __init__.py | Initialization of the pywikibot framework, | - | | basic classes and methods | - +---------------------------+------------------------------------------------------+ - | _wbtypes.py | Wikibase data type classes | - +---------------------------+------------------------------------------------------+ - | backports.py | Module contains backports to support older Python | - | | versions | - +---------------------------+------------------------------------------------------+ - | bot.py | User-interface related functions for building bots | - +---------------------------+------------------------------------------------------+ - | bot_choice.py | Classes for input_choice | - +---------------------------+------------------------------------------------------+ - | botirc.py | User-interface related functions for building irc bot| - +---------------------------+------------------------------------------------------+ - | config2.py | Module to define and load pywikibot configuration | - +---------------------------+------------------------------------------------------+ - | cosmetic_changes.py | Slight modifications to a wiki page's source code | - +---------------------------+------------------------------------------------------+ - | daemonize.py | Daemonize the current process on Unix | - +---------------------------+------------------------------------------------------+ - | date.py | Date formats in various languages | - +---------------------------+------------------------------------------------------+ - | diff.py | Diff module | - +---------------------------+------------------------------------------------------+ - | echo.py | Classes and functions for working with the Echo | - | | extension | - +---------------------------+------------------------------------------------------+ - | editor.py | Text editor class for your favourite editor | - +---------------------------+------------------------------------------------------+ - | epydoc.cfg | The list of objects to document | - +---------------------------+------------------------------------------------------+ - | exceptions.py | Exception classes used throughout the framework | - +---------------------------+------------------------------------------------------+ - | family.py | Abstract superclass for wiki families. Subclassed by | - | | the classes in the 'families' subdirectory. | - +---------------------------+------------------------------------------------------+ - | fixes.py | File containing all standard fixes, stores predefined| - | | replacements used by replace.py. | - +---------------------------+------------------------------------------------------+ - | flow.py | Objects representing Flow entities | - +---------------------------+------------------------------------------------------+ - | i18n.py | Helper functions for both the internal translation | - | | system and for TranslateWiki-based translations | - +---------------------------+------------------------------------------------------+ - | interwiki_graph.py | Possible create graph with interwiki.py. | - +---------------------------+------------------------------------------------------+ - | logentries.py | Objects representing Mediawiki log entries | - +---------------------------+------------------------------------------------------+ - | login.py | Log in to an account on your "home" wiki. or check | - | | login status | - +---------------------------+------------------------------------------------------+ - | page.py | Allows access to the site's bot user list. | - +---------------------------+------------------------------------------------------+ - | pagegenerators.py | Generator pages. | - +---------------------------+------------------------------------------------------+ - | plural.py | Module containing plural rules of various languages | - +---------------------------+------------------------------------------------------+ - | proofreadpage.py | Objects representing objects used with ProofreadPage | - | | Extension | - +---------------------------+------------------------------------------------------+ - | site.py | Objects representing MediaWiki sites (wikis) | - +---------------------------+------------------------------------------------------+ - | site_detect.py | Classes for detecting a MediaWiki site | - +---------------------------+------------------------------------------------------+ - | textlib.py | Functions for manipulating wiki-text | - +---------------------------+------------------------------------------------------+ - | throttle.py | Mechanics to slow down wiki read and/or write rate | - +---------------------------+------------------------------------------------------+ - | titletranslate.py | Rules and tricks to auto-translate wikipage titles | - | | articles. | - +---------------------------+------------------------------------------------------+ - | version.py | Module to determine the pywikibot version (tag, | - | | revision and date) | - +---------------------------+------------------------------------------------------+ - | weblib.py | Functions for manipulating external links or querying| - | | third-party sites | - +---------------------------+------------------------------------------------------+ - | xmlreader.py | Reading and parsing XML dump files. | - +---------------------------+------------------------------------------------------+ + +-----------------------------------------------------------------------------------+ + | Library routines | + +===========================+=======================================================+ + | __init__.py | Initialization of the pywikibot framework, | + | | basic classes and methods | + +---------------------------+-------------------------------------------------------+ + | _wbtypes.py | Wikibase data type classes | + +---------------------------+-------------------------------------------------------+ + | backports.py | Module contains backports to support older Python | + | | versions | + +---------------------------+-------------------------------------------------------+ + | bot.py | User-interface related functions for building bots | + +---------------------------+-------------------------------------------------------+ + | bot_choice.py | Classes for input_choice | + +---------------------------+-------------------------------------------------------+ + | botirc.py | User-interface related functions for building irc bot | + +---------------------------+-------------------------------------------------------+ + | config2.py | Module to define and load pywikibot configuration | + +---------------------------+-------------------------------------------------------+ + | cosmetic_changes.py | Slight modifications to a wiki page's source code | + +---------------------------+-------------------------------------------------------+ + | daemonize.py | Daemonize the current process on Unix | + +---------------------------+-------------------------------------------------------+ + | date.py | Date formats in various languages | + +---------------------------+-------------------------------------------------------+ + | diff.py | Diff module | + +---------------------------+-------------------------------------------------------+ + | echo.py | Classes and functions for working with the Echo | + | | extension | + +---------------------------+-------------------------------------------------------+ + | editor.py | Text editor class for your favourite editor | + +---------------------------+-------------------------------------------------------+ + | epydoc.cfg | The list of objects to document | + +---------------------------+-------------------------------------------------------+ + | exceptions.py | Exception classes used throughout the framework | + +---------------------------+-------------------------------------------------------+ + | family.py | Abstract superclass for wiki families. Subclassed by | + | | the classes in the 'families' subdirectory. | + +---------------------------+-------------------------------------------------------+ + | fixes.py | File containing all standard fixes, stores predefined | + | | replacements used by replace.py. | + +---------------------------+-------------------------------------------------------+ + | flow.py | Objects representing Flow entities | + +---------------------------+-------------------------------------------------------+ + | i18n.py | Helper functions for both the internal translation | + | | system and for TranslateWiki-based translations | + +---------------------------+-------------------------------------------------------+ + | interwiki_graph.py | Possible create graph with interwiki.py. | + +---------------------------+-------------------------------------------------------+ + | logentries.py | Objects representing Mediawiki log entries | + +---------------------------+-------------------------------------------------------+ + | logging.py | Logging and output functions | + +---------------------------+-------------------------------------------------------+ + | login.py | Log in to an account on your "home" wiki. or check | + | | login status | + +---------------------------+-------------------------------------------------------+ + | page.py | Allows access to the site's bot user list. | + +---------------------------+-------------------------------------------------------+ + | pagegenerators.py | Generator pages. | + +---------------------------+-------------------------------------------------------+ + | plural.py | Module containing plural rules of various languages | + +---------------------------+-------------------------------------------------------+ + | proofreadpage.py | Objects representing objects used with ProofreadPage | + | | Extension | + +---------------------------+-------------------------------------------------------+ + | site.py | Objects representing MediaWiki sites (wikis) | + +---------------------------+-------------------------------------------------------+ + | site_detect.py | Classes for detecting a MediaWiki site | + +---------------------------+-------------------------------------------------------+ + | specialbots.py | Predefined special bot classes | + +---------------------------+-------------------------------------------------------+ + | textlib.py | Functions for manipulating wiki-text | + +---------------------------+-------------------------------------------------------+ + | throttle.py | Mechanics to slow down wiki read and/or write rate | + +---------------------------+-------------------------------------------------------+ + | titletranslate.py | Rules and tricks to auto-translate wikipage titles | + | | articles. | + +---------------------------+-------------------------------------------------------+ + | version.py | Module to determine the pywikibot version (tag, | + | | revision and date) | + +---------------------------+-------------------------------------------------------+ + | weblib.py | Functions for manipulating external links or querying | + | | third-party sites | + +---------------------------+-------------------------------------------------------+ + | xmlreader.py | Reading and parsing XML dump files. | + +---------------------------+-------------------------------------------------------+ - +---------------------------+------------------------------------------------------+ - | comms | Communication layer. | - +===========================+======================================================+ - | http.py | Basic HTTP access interface | - +---------------------------+------------------------------------------------------+ - | rcstream.py | SocketIO-based rcstream client | - +---------------------------+------------------------------------------------------+ - | threadedhttp.py | Httplib2 threaded cookie layer extending httplib2 | - +---------------------------+------------------------------------------------------+ + +---------------------------+-------------------------------------------------------+ + | comms | Communication layer. | + +===========================+=======================================================+ + | http.py | Basic HTTP access interface | + +---------------------------+-------------------------------------------------------+ + | rcstream.py | SocketIO-based rcstream client | + +---------------------------+-------------------------------------------------------+ + | threadedhttp.py | Httplib2 threaded cookie layer extending httplib2 | + +---------------------------+-------------------------------------------------------+ - +---------------------------+------------------------------------------------------+ - | compat | Package to provide compatibility with compat scripts.| - | | (should never be used) | - +===========================+======================================================+ - | catlib.py | Library routines written especially to handle | - | | category pages and recurse over category contents. | - +---------------------------+------------------------------------------------------+ - | query.py | API query library | - +---------------------------+------------------------------------------------------+ - | userlib.py | Library to work with users, their pages and talk page| - +---------------------------+------------------------------------------------------+ + +---------------------------+-------------------------------------------------------+ + | compat | Package to provide compatibility with compat scripts. | + | | (should never be used) | + +===========================+=======================================================+ + | catlib.py | Library routines written especially to handle | + | | category pages and recurse over category contents. | + +---------------------------+-------------------------------------------------------+ + | query.py | API query library | + +---------------------------+-------------------------------------------------------+ + | userlib.py | Library to work with users, their pages and talk page | + +---------------------------+-------------------------------------------------------+ +---------------------------+-------------------------------------------------------+ @@ -128,30 +132,32 @@ +===========================+=======================================================+ | api.py | Interface to Mediawiki's api.php | +---------------------------+-------------------------------------------------------+ + | mysql.py | Miscellaneous helper functions for mysql queries | + +---------------------------+-------------------------------------------------------+ + | sparql.py | Objects representing SPARQL query API | + +---------------------------+-------------------------------------------------------+ | wikidataquery.py | Objects representing WikidataQuery query syntax | | | and API | +---------------------------+-------------------------------------------------------+ | wikistats.py | Objects representing WikiStats API | +---------------------------+-------------------------------------------------------+ - | sparql.py | Objects representing SPARQL query API | - +---------------------------+-------------------------------------------------------+ - +---------------+------------------------------------------------------------------+ - | tools | Miscellaneous helper functions (not wiki-dependent). | - +===============+==================================================================+ - | __init__.py | several classes and methods | - +---------------+------------------------------------------------------------------+ - | _logging.py | Logging tools | - +---------------+------------------------------------------------------------------+ - | chars.py | Character based helper functions(not wiki-dependent) | - +---------------+------------------------------------------------------------------+ - | djvu.py | Wrapper around djvulibre to access djvu properties and content | - +---------------+------------------------------------------------------------------+ - | formatter.py | Various formatting related utilities | - +---------------+------------------------------------------------------------------+ - | ip.py | IP address tools module | - +---------------+------------------------------------------------------------------+ + +---------------+-------------------------------------------------------------------+ + | tools | Miscellaneous helper functions (not wiki-dependent). | + +===============+===================================================================+ + | __init__.py | several classes and methods | + +---------------+-------------------------------------------------------------------+ + | _logging.py | Logging tools | + +---------------+-------------------------------------------------------------------+ + | chars.py | Character based helper functions(not wiki-dependent) | + +---------------+-------------------------------------------------------------------+ + | djvu.py | Wrapper around djvulibre to access djvu properties and content | + +---------------+-------------------------------------------------------------------+ + | formatter.py | Various formatting related utilities | + +---------------+-------------------------------------------------------------------+ + | ip.py | IP address tools module | + +---------------+-------------------------------------------------------------------+ +-----------------------------------------------------------------------------------+ -- To view, visit
https://gerrit.wikimedia.org/r/348934
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ifb7aab9f6958de259833f12e19ecf84a4d8d9168 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: jenkins-bot <>
7 years
1
0
0
0
Fixed: wikimedia/pywikibot-core#3989 (master - 3a2b5f7)
by Travis CI
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #3989 Status: Fixed Duration: 2 hours, 29 minutes, and 29 seconds Commit: 3a2b5f7 (master) Author: jenkins-bot Message: Merge "[IMPR] Unify edit summary arguments" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/fddab20f488c...3a2b5f77…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/223520844
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
7 years
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
9
10
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
Results per page:
10
25
50
100
200