From ecbcc6118ee24f8dd127153699631057e439de63 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sat, 25 Dec 2021 16:14:05 +1100 Subject: [PATCH] docs: Fix a few typos There are small typos in: - dumpgenerator.py - wikiteam/mediawiki.py Fixes: - Should read `inconsistencies` rather than `inconsistences`. - Should read `partially` rather than `partialy`. --- dumpgenerator.py | 6 +++--- wikiteam/mediawiki.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dumpgenerator.py b/dumpgenerator.py index 536cd0e..6a23d49 100755 --- a/dumpgenerator.py +++ b/dumpgenerator.py @@ -596,7 +596,7 @@ def getXMLPageCore(headers={}, params={}, config={}, session=None): def getXMLPage(config={}, title='', verbose=True, session=None): """ Get the full history (or current only) of a page """ - # if server errors occurs while retrieving the full page history, it may return [oldest OK versions] + last version, excluding middle revisions, so it would be partialy truncated + # if server errors occurs while retrieving the full page history, it may return [oldest OK versions] + last version, excluding middle revisions, so it would be partially truncated # http://www.mediawiki.org/wiki/Manual_talk:Parameters_to_Special:Export#Parameters_no_longer_in_use.3F limit = 1000 @@ -2163,7 +2163,7 @@ def resumePreviousDump(config={}, other={}): print 'Title list was completed in the previous session' else: print 'Title list is incomplete. Reloading...' - # do not resume, reload, to avoid inconsistences, deleted pages or + # do not resume, reload, to avoid inconsistencies, deleted pages or # so getPageTitles(config=config, session=other['session']) @@ -2235,7 +2235,7 @@ def resumePreviousDump(config={}, other={}): print 'Image list was completed in the previous session' else: print 'Image list is incomplete. Reloading...' - # do not resume, reload, to avoid inconsistences, deleted images or + # do not resume, reload, to avoid inconsistencies, deleted images or # so images = getImageNames(config=config, session=other['session']) saveImageNames(config=config, images=images) diff --git a/wikiteam/mediawiki.py b/wikiteam/mediawiki.py index 55ec0a5..0a6d064 100644 --- a/wikiteam/mediawiki.py +++ b/wikiteam/mediawiki.py @@ -691,7 +691,7 @@ def mwGetXMLHeader(config={}): def mwGetXMLPage(config={}, pagetitle='', verbose=True): """ Get the full history (or current only) of a page """ - # if server errors occurs while retrieving the full page history, it may return [oldest OK versions] + last version, excluding middle revisions, so it would be partialy truncated + # if server errors occurs while retrieving the full page history, it may return [oldest OK versions] + last version, excluding middle revisions, so it would be partially truncated # http://www.mediawiki.org/wiki/Manual_talk:Parameters_to_Special:Export#Parameters_no_longer_in_use.3F limit = 1000 @@ -899,7 +899,7 @@ def mwResumePreviousDump(config={}): sys.stderr.write('Title list was completed in the previous session') else: sys.stderr.write('Title list is incomplete. Reloading...') - # do not resume, reload, to avoid inconsistences, deleted pages or + # do not resume, reload, to avoid inconsistencies, deleted pages or # so pagetitles = mwGetPageTitles(config=config, start=lastxmltitle) wikiteam.savePageTitles(config=config, pagetitles=pagetitles) @@ -963,7 +963,7 @@ def mwResumePreviousDump(config={}): sys.stderr.write('Image list was completed in the previous session') else: sys.stderr.write('Image list is incomplete. Reloading...') - # do not resume, reload, to avoid inconsistences, deleted images or + # do not resume, reload, to avoid inconsistencies, deleted images or # so imagenames = mwGetImageNames(config=config) saveImageNames(config=config, imagenames=imagenames)