jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/678418 )
Change subject: [doc] Update documentation ......................................................................
[doc] Update documentation
* http --> https * wikipedia --> Wikipedia * full stop is not part of the URL
Change-Id: I498c904c28bba9ef2810f8c0779544feb13210a7 --- M pywikibot/diff.py M pywikibot/logging.py M pywikibot/pagegenerators.py M pywikibot/userinterfaces/win32_unicode.py M scripts/archive/capitalize_redirects.py M scripts/archive/followlive.py M scripts/misspelling.py M scripts/parser_function_count.py M scripts/reflinks.py M scripts/solve_disambiguation.py M scripts/upload.py M scripts/welcome.py 12 files changed, 21 insertions(+), 21 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/diff.py b/pywikibot/diff.py index 8eb6023..f57da33 100644 --- a/pywikibot/diff.py +++ b/pywikibot/diff.py @@ -78,7 +78,7 @@ def create_diff(self): """Generator of diff text for this hunk, without formatting.""" # make sure each line ends with '\n' to prevent - # behaviour like http://bugs.python.org/issue2142 + # behaviour like https://bugs.python.org/issue2142 def check_line(line): return line if line.endswith('\n') else line + '\n'
diff --git a/pywikibot/logging.py b/pywikibot/logging.py index ccb92af..785ce4d 100644 --- a/pywikibot/logging.py +++ b/pywikibot/logging.py @@ -137,7 +137,7 @@ be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html """ logoutput(text, decoder, newline, STDOUT, **kwargs)
@@ -151,7 +151,7 @@ should be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html """ logoutput(text, decoder, newline, WARNING, **kwargs)
@@ -164,7 +164,7 @@ be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html """ logoutput(text, decoder, newline, ERROR, **kwargs)
@@ -177,7 +177,7 @@ be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html """ logoutput(text, decoder, newline, VERBOSE, **kwargs)
@@ -190,7 +190,7 @@ be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html """ logoutput(text, decoder, newline, CRITICAL, **kwargs)
@@ -203,7 +203,7 @@ be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html @param layer: The name of the logger that text will be sent to. """ logoutput(text, decoder, newline, DEBUG, layer, **kwargs) @@ -233,7 +233,7 @@ be encoded in the given encoding. @param newline: If True, a line feed will be added after printing the text. @param kwargs: The keyword arguments can be found in the python doc: - https://docs.python.org/3/howto/logging-cookbook.html. + https://docs.python.org/3/howto/logging-cookbook.html @param tb: Set to True in order to output traceback also. """ if isinstance(msg, BaseException): diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index fbc585f..7dedfa6 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -2,7 +2,7 @@ This module offers a wide variety of page generators.
A page generator is an -object that is iterable (see http://legacy.python.org/dev/peps/pep-0255/ ) and +object that is iterable (see https://legacy.python.org/dev/peps/pep-0255/ ) and that yields page objects on which other scripts can then work.
Pagegenerators.py cannot be run as script. For testing purposes listpages.py diff --git a/pywikibot/userinterfaces/win32_unicode.py b/pywikibot/userinterfaces/win32_unicode.py index 218be16..79bdb99 100755 --- a/pywikibot/userinterfaces/win32_unicode.py +++ b/pywikibot/userinterfaces/win32_unicode.py @@ -164,7 +164,7 @@
def register_cp65001(): """Register codecs cp65001 as utf-8.""" - # Work around http://bugs.python.org/issue6058. + # Work around https://bugs.python.org/issue6058 codecs.register(lambda name: name == 'cp65001' and codecs.lookup('utf-8') or None)
@@ -229,7 +229,7 @@ @rtype: tuple """ # Make Unicode console output work independently of the current code page. - # This also fixes http://bugs.python.org/issue1602. + # This also fixes https://bugs.python.org/issue1602 # Credit to Michael Kaplan # http://blogs.msdn.com/b/michkap/archive/2010/04/07/9989346.aspx # and TZOmegaTZIOY diff --git a/scripts/archive/capitalize_redirects.py b/scripts/archive/capitalize_redirects.py index 8c42c62..0b73071 100755 --- a/scripts/archive/capitalize_redirects.py +++ b/scripts/archive/capitalize_redirects.py @@ -25,7 +25,7 @@ # Distributed under the terms of the MIT license. # # Originally derived from: -# http://en.wikipedia.org/wiki/User:Drinibot/CapitalizationRedirects +# https://en.wikipedia.org/wiki/User:Drinibot/CapitalizationRedirects # # Automatically converted from compat branch by compat2core.py script # diff --git a/scripts/archive/followlive.py b/scripts/archive/followlive.py index a5dac68..b623fa1 100644 --- a/scripts/archive/followlive.py +++ b/scripts/archive/followlive.py @@ -2,7 +2,7 @@ """ Periodically grab list of new articles and analyze to blank or flag them.
-Script to follow new articles on a wikipedia and flag them +Script to follow new articles on the wiki and flag them with a template or eventually blank them.
There must be A LOT of bugs! Use with caution and verify what diff --git a/scripts/misspelling.py b/scripts/misspelling.py index 30d88bf..8b5412d 100755 --- a/scripts/misspelling.py +++ b/scripts/misspelling.py @@ -12,8 +12,8 @@ some choices for XY don't make sense and will result in a loop, e.g. "l" or "m".
- -main only check pages in the main namespace, not in the talk, - wikipedia, user, etc. namespaces. + -main only check pages in the main namespace, not in the Talk, + Project, User, etc. namespaces.
-start:XY goes through all misspellings in the category on your wiki that is defined (to the bot) as the category containing diff --git a/scripts/parser_function_count.py b/scripts/parser_function_count.py index 71ae836..9348187 100755 --- a/scripts/parser_function_count.py +++ b/scripts/parser_function_count.py @@ -163,7 +163,7 @@ if self.opt.save: # This opens in strict error mode, that means bot will stop # on encoding errors with ValueError. - # See http://docs.python.org/library/codecs.html#codecs.open + # See https://docs.python.org/3/library/codecs.html#codecs.open try: with codecs.open( self.opt.save, encoding='utf-8', mode='a') as f: diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 559da2e..79578ea 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -75,7 +75,7 @@
localized_msg = ('fr', 'it', 'pl') # localized message at MediaWiki
-# localized message at specific wikipedia site +# localized message at specific Wikipedia site # should be moved to MediaWiki Pywikibot manual
diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py index 4606913..dfdad27 100755 --- a/scripts/solve_disambiguation.py +++ b/scripts/solve_disambiguation.py @@ -49,8 +49,8 @@ some choices for XY don't make sense and will result in a loop, e.g. "l" or "m".
- -main only check pages in the main namespace, not in the talk, - wikipedia, user, etc. namespaces. + -main only check pages in the main namespace, not in the Talk, + Project, User, etc. namespaces.
-first Uses only the first link of every line on the disambiguation page that begins with an asterisk. Useful if the page is full diff --git a/scripts/upload.py b/scripts/upload.py index 1a52578..6fba731 100755 --- a/scripts/upload.py +++ b/scripts/upload.py @@ -1,6 +1,6 @@ #!/usr/bin/python """ -Script to upload images to wikipedia. +Script to upload images to Wikipedia.
The following parameters are supported:
diff --git a/scripts/welcome.py b/scripts/welcome.py index b2e93a4..269f91a 100755 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -191,7 +191,7 @@ # Add the following strings to customise for a language: # logbook, netext, report_page, bad_pag, report_text, random_sign, # whitelist_pg, final_new_text_additions, logpage_header if -# different from wikipedia entry +# different from Wikipedia entry
############################################################################
pywikibot-commits@lists.wikimedia.org