jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/453576 )
Change subject: [IMPR] improve hash method for BasePage and Link
......................................................................
[IMPR] improve hash method for BasePage and Link
- use _cmpkey to build hash BasePage
- simplify Link's hash method by using sitename and canonical_title as tuple
Change-Id: I346b050665b3337cca0ff9e22e8d493547b2a7af
---
M pywikibot/page.py
1 file changed, 2 insertions(+), 4 deletions(-)
Approvals:
Framawiki: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index e2f2fcc..46021a9 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -413,7 +413,7 @@
This relies on the fact that the string
representation of an instance can not change after the construction.
"""
- return hash(unicode(self))
+ return hash(self._cmpkey())
def full_url(self):
"""Return the full URL."""
@@ -5846,9 +5846,7 @@
def __hash__(self):
"""A stable identifier to be used as a key in hash-tables."""
- return hash(u'%s:%s:%s' % (self.site.family.name,
- self.site.code,
- self.title))
+ return hash((self.site.sitename, self.canonical_title()))
@classmethod
def fromPage(cls, page, source=None):
--
To view, visit https://gerrit.wikimedia.org/r/453576
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I346b050665b3337cca0ff9e22e8d493547b2a7af
Gerrit-Change-Number: 453576
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999(a)gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Matěj Suchánek <matejsuchanek97(a)gmail.com>
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/455139 )
Change subject: [cleanup] cleanup config2.py
......................................................................
[cleanup] cleanup config2.py
- fix section header for "EXTERNAL SCRIPT PATH SETTINGS" and
"REPLICATION BOT SETTINGS"
- separate section info text into a header line and additional
comments by a new line
detached from I68a04e9198dc179f06c6245f1c1aec518603bd34
Change-Id: Ic04c36407f0a0b9f58791e93c8519c54ad2618df
---
M pywikibot/config2.py
1 file changed, 16 insertions(+), 9 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 552f060..ad97656 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -519,6 +519,7 @@
# Defines for which scripts a logfile should be enabled. Logfiles will be
# saved in the 'logs' subdirectory.
+#
# Example:
# log = ['interwiki', 'weblinkchecker', 'table2wiki']
# It is also possible to enable logging for all scripts, using this line:
@@ -550,9 +551,10 @@
# (overrides log setting above)
debug_log = []
-# ############# EXTERNAL SCRIPT PATH SETTING ##############
-# set your own script path to lookup for your script files.
-# your private script path must be located inside the
+# ############# EXTERNAL SCRIPT PATH SETTINGS ##############
+# Set your own script path to lookup for your script files.
+#
+# Your private script path must be located inside the
# framework folder, subfolders must be delimited by '.'.
# every folder must contain an (empty) __init__.py file.
#
@@ -619,6 +621,7 @@
#
# Set disambiguation_comment[FAMILY][LANG] to a non-empty string to override
# the default edit comment for the solve_disambiguation bot.
+#
# Use %s to represent the name of the disambiguation page being treated.
# Example:
#
@@ -639,6 +642,7 @@
# 'minthrottle' seconds. This can be lengthened if the server is slow,
# but never more than 'maxthrottle' seconds. However - if you are running
# more than one bot in parallel the times are lengthened.
+#
# By default, the get_throttle is turned off, and 'maxlag' is used to
# control the rate of server access. Set minthrottle to non-zero to use a
# throttle on read access.
@@ -674,8 +678,8 @@
# ############# TABLE CONVERSION BOT SETTINGS ##############
-# will split long paragraphs for better reading the source.
-# only table2wiki.py use it by now
+# Will split long paragraphs for better reading the source.
+# Only table2wiki.py use it by now.
splitLongParagraphs = False
# sometimes HTML-tables are indented for better reading.
# That can do very ugly results.
@@ -696,6 +700,7 @@
# ############# DATABASE SETTINGS ##############
# Setting to connect the database or replica of the database of the wiki.
# db_name_format can be used to manipulate the dbName of site.
+#
# Example for a pywikibot running on wmflabs:
# db_hostname = 'enwiki.analytics.db.svc.eqiad.wmflabs'
# db_name_format = '{0}_p'
@@ -711,7 +716,8 @@
db_port = 3306
# ############# SEARCH ENGINE SETTINGS ##############
-
+# Live search web service appid settings.
+#
# Yahoo! Search Web Services are not operational.
# See https://phabricator.wikimedia.org/T106085
yahoo_appid = ''
@@ -838,9 +844,10 @@
cosmetic_changes_deny_script = ['category_redirect', 'cosmetic_changes',
'newitem', 'touch']
-# ############# REPLICATION BOT ################
-# You can add replicate_replace to your user-config.py, which has the following
-# format:
+# ############# REPLICATION BOT SETTINGS ################
+# You can add replicate_replace to your user-config.py.
+#
+# Use has the following format:
#
# replicate_replace = {
# 'wikipedia:li': {'Hoofdpagina': 'Veurblaad'}
--
To view, visit https://gerrit.wikimedia.org/r/455139
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic04c36407f0a0b9f58791e93c8519c54ad2618df
Gerrit-Change-Number: 455139
Gerrit-PatchSet: 3
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: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/454198 )
Change subject: pagegenerators.py: Avoid applying two uniquifying filters
......................................................................
pagegenerators.py: Avoid applying two uniquifying filters
GeneratorFactory applies unique_filter at two levels under certain
conditions, see T199615#4517616.
This happens because UserContributionsGenerator and
RecentChangesPageGenerator are always used with filter_unique and when
combined, the combination is also passed through filter_unique.
This might lead to unnecessary memory consumption.
To resolve the issue, we will apply filter_unique only once, after all
generators are created.
- Create global function `_filter_unique_pages`. It will help in
applying unique_filter to page generators without having to pass the
`key` argument every time.
- Remove `GeneratorFactory._filter_unique`. Use the global
`_filter_unique_pages` Instead.
- Do not pre-apply filter_unique to UserContributionsGenerator and
RecentChangesPageGenerator. Instead use `self._single_gen_filter_unique`
as a flag to indicate that the results should be filtered later.
- Convert `GeneratorFactory._parse_log_events` into a static method.
- getCombinedGenerator: Remove `gensList` variable. It was not used
anywhere else.
Bug: T199615
Change-Id: Ida8005c8fe6f48d287c106983350cb09b8722134
---
M pywikibot/pagegenerators.py
1 file changed, 25 insertions(+), 22 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index ec5a83b..7378a96 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -395,6 +395,11 @@
__doc__ = __doc__.replace("¶ms;", parameterHelp)
+# This is the function that will be used to de-duplicate page iterators.
+_filter_unique_pages = partial(
+ filter_unique, key=lambda page: '{}:{}:{}'.format(*page._cmpkey()))
+
+
class GeneratorFactory(object):
"""Process command line arguments and return appropriate page generator.
@@ -403,14 +408,6 @@
that are used by many scripts and that determine which pages to work on.
"""
- # This is the function that will be used to de-duplicate iterators.
- _filter_unique = staticmethod(partial(
- filter_unique, key=lambda p: '{}:{}:{}'.format(*p._cmpkey())))
- # The seen list can not yet be shared at present, due to `intersect` mode
- # not being known until after all generators have been created.
- # When not in intersect mode, _filter_unique could be:
- # functools.partial(filter_unique, container=global_seen_list, key=...)
-
def __init__(self, site=None, positional_arg_name=None):
"""
Initializer.
@@ -517,19 +514,19 @@
'filter(s) specified but no generators.')
return None
elif len(self.gens) == 1:
- gensList = self.gens[0]
- dupfiltergen = gensList
+ dupfiltergen = self.gens[0]
+ if hasattr(self, '_single_gen_filter_unique'):
+ dupfiltergen = _filter_unique_pages(dupfiltergen)
if self.intersect:
pywikibot.warning(
'"-intersect" ignored as only one generator is specified.')
else:
if self.intersect:
- gensList = intersect_generators(self.gens)
# By definition no duplicates are possible.
- dupfiltergen = gensList
+ dupfiltergen = intersect_generators(self.gens)
else:
- gensList = itertools.chain(*self.gens)
- dupfiltergen = self._filter_unique(gensList)
+ dupfiltergen = _filter_unique_pages(itertools.chain(
+ *self.gens))
# Add on subpage filter generator
if self.subpage_max_depth is not None:
@@ -627,7 +624,8 @@
recurse=recurse,
content=content)
- def _parse_log_events(self, logtype, user=None, start=None, end=None):
+ @staticmethod
+ def _parse_log_events(logtype, user=None, start=None, end=None):
"""
Parse the -logevent argument information.
@@ -758,7 +756,9 @@
def _handle_usercontribs(self, value):
"""Handle `-usercontribs` argument."""
- return UserContributionsGenerator(value, site=self.site)
+ self._single_gen_filter_unique = True
+ return UserContributionsGenerator(
+ value, site=self.site, _filter_unique=None)
def _handle_withoutinterwiki(self, value):
"""Handle `-withoutinterwiki` argument."""
@@ -815,9 +815,10 @@
rcend = rcstart - timedelta(minutes=duration)
elif len(params) == 1:
total = int(params[0])
+ self._single_gen_filter_unique = True
return RecentChangesPageGenerator(
namespaces=self.namespaces, total=total, start=rcstart, end=rcend,
- site=self.site, tag=rctag, _filter_unique=self._filter_unique)
+ site=self.site, tag=rctag)
def _handle_liverecentchanges(self, value):
"""Handle `-liverecentchanges` argument."""
@@ -1609,7 +1610,8 @@
@deprecated_args(number='total', step=None)
def UserContributionsGenerator(username, namespaces=None, site=None,
- total=None, _filter_unique=filter_unique):
+ total=None,
+ _filter_unique=_filter_unique_pages):
"""Yield unique pages edited by user:username.
@param total: Maximum number of pages to retrieve in total
@@ -1627,10 +1629,11 @@
pywikibot.warning('User "{}" does not exist on site "{}".'
.format(user.username, site))
- return _filter_unique(
- (contrib[0] for contrib in user.contributions(
- namespaces=namespaces, total=total)),
- key=lambda p: '{}:{}:{}'.format(*p._cmpkey()))
+ gen = (contrib[0] for contrib in user.contributions(
+ namespaces=namespaces, total=total))
+ if _filter_unique:
+ return _filter_unique(gen)
+ return gen
def NamespaceFilterPageGenerator(generator, namespaces, site=None):
--
To view, visit https://gerrit.wikimedia.org/r/454198
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ida8005c8fe6f48d287c106983350cb09b8722134
Gerrit-Change-Number: 454198
Gerrit-PatchSet: 5
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: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/454853 )
Change subject: CosmeticChangesToolkit.removeEmptySections: Fix skipping of language links
......................................................................
CosmeticChangesToolkit.removeEmptySections: Fix skipping of language links
The 'interwiki' regex includes the trailing newlines and therefore may
potentially mess up page sections. (T202629)
Instead of using the 'interwiki' regex, use the textlib.removeLanguageLinks
function. Use marker='\n' argument to avoid the issue mentioned above.
Add a few tests for the fixed bug.
Do minor cleanups in textlib.py:
- _ignore_case: No need to ignore-case a letter if it is not case-sensitive.
- 'interwiki' regex patter, replace '[\s]*' with '\s*'.
Bug: T202629
Change-Id: I22b4ad92c7058ca65c6e3e6a680586dc1c2490a0
---
M pywikibot/cosmetic_changes.py
M pywikibot/textlib.py
M tests/cosmetic_changes_tests.py
3 files changed, 20 insertions(+), 8 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 3130081..ac4d548 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -663,12 +663,8 @@
def removeEmptySections(self, text):
"""Cleanup empty sections."""
- # comments, categories, and interwikis
- skippings = ['comment', 'category', 'interwiki']
+ skippings = ['comment', 'category']
skip_regexes = _get_regexes(skippings, self.site)
- # we want only interwikis, not interlanguage links
- skip_regexes[1] = re.compile(
- skip_regexes[1].pattern.replace(':?', ''))
# site defined templates
skip_templates = {
'cs': ('Pahýl[ _]část',), # stub section
@@ -681,7 +677,7 @@
skip_regexes.append(re.compile(r'(?m)^[\*#] *$'))
# get stripped sections
- stripped_text = text
+ stripped_text = textlib.removeLanguageLinks(text, self.site, '\n')
for reg in skip_regexes:
stripped_text = reg.sub(r'', stripped_text)
strip_sections = textlib.extract_sections(
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 074ba72..c9d416b 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -251,7 +251,9 @@
def _ignore_case(string):
"""Return a case-insensitive pattern for the string."""
- return ''.join('[' + c.upper() + c.lower() + ']' for c in string)
+ return ''.join(
+ '[' + c + s + ']' if c != s else c
+ for s, c in zip(string, string.swapcase()))
def _tag_pattern(tag_name):
@@ -282,7 +284,7 @@
'hyperlink': compileLinkR(),
# also finds links to foreign sites with preleading ":"
'interwiki': (
- r'\[\[:?(%s)\s?:[^\]]*\]\][\s]*',
+ r'\[\[:?(%s)\s?:[^\]]*\]\]\s*',
lambda site: '|'.join(
_ignore_case(i) for i in site.validLanguageLinks()
+ list(site.family.obsolete.keys()))),
diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py
index d5354c0..a6024a2 100644
--- a/tests/cosmetic_changes_tests.py
+++ b/tests/cosmetic_changes_tests.py
@@ -332,6 +332,20 @@
self.cct.removeEmptySections('\n==Bar==\n[[cs:Foo]]'
'\n[[Category:Baz]]'))
+ def test_remove_empty_sections_interlanguage_links(self):
+ """Test removeEmptySections with edge cases of language links."""
+ # When removing language links, do not remove the \n after them,
+ # otherwise the sections won't be detected correctly.
+ text = 'text [[:en:link]]\n=== title1 ===\ncontent1'
+ self.assertEqual(text, self.cct.removeEmptySections(text))
+ self.assertEqual(
+ 't [[en:link]]\n=== 1 ===\nc',
+ self.cct.removeEmptySections('t [[en:link]]\n=== 1 ===\nc'))
+ # Treat sections that only contain language links as empty sections.
+ self.assertEqual(
+ 't\n[[en:link]]',
+ self.cct.removeEmptySections('t\n=== 1 ===\n[[en:link]]'))
+
def test_remove_empty_sections_with_heading_comments(self):
"""Test removeEmptySections with comments in the section headings."""
self.assertEqual(
--
To view, visit https://gerrit.wikimedia.org/r/454853
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I22b4ad92c7058ca65c6e3e6a680586dc1c2490a0
Gerrit-Change-Number: 454853
Gerrit-PatchSet: 9
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: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/454861 )
Change subject: [doc] Prepare next release
......................................................................
[doc] Prepare next release
Change-Id: I617dc550b618a2d95116785cf864bf4cb34110d1
---
M HISTORY.rst
M docs/conf.py
2 files changed, 7 insertions(+), 1 deletion(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index b2e5ed2..ca50425 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,12 @@
Current release
---------------
+* Bugfixes and improvements
+* Localisation updates
+
+3.0.20180823
+------------
+
* Don't reset Bot._site to None if we have already a site object (T125046)
* pywikibot.site.Siteinfo: Fix the bug in cache_time when loading a CachedRequest (T202227)
* pagegenerators._handle_recentchanges: Do not request for reversed results (T199199)
diff --git a/docs/conf.py b/docs/conf.py
index 3cf3d95..e08c3d4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -71,7 +71,7 @@
# The short X.Y version.
version = '3.0'
# The full version, including alpha/beta/rc tags.
-release = '3.0.20180710'
+release = '3.0.20180823'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
--
To view, visit https://gerrit.wikimedia.org/r/454861
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I617dc550b618a2d95116785cf864bf4cb34110d1
Gerrit-Change-Number: 454861
Gerrit-PatchSet: 1
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: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/454793 )
Change subject: [doc] update HISTORY.rst
......................................................................
[doc] update HISTORY.rst
Change-Id: I30e36f06887eb5b4e565410298cf8952a61adc76
---
M HISTORY.rst
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index f856aad..b2e5ed2 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,7 @@
Current release
---------------
+* Don't reset Bot._site to None if we have already a site object (T125046)
* pywikibot.site.Siteinfo: Fix the bug in cache_time when loading a CachedRequest (T202227)
* pagegenerators._handle_recentchanges: Do not request for reversed results (T199199)
* Use a key for filter_unique where appropriate (T199615)
--
To view, visit https://gerrit.wikimedia.org/r/454793
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I30e36f06887eb5b4e565410298cf8952a61adc76
Gerrit-Change-Number: 454793
Gerrit-PatchSet: 1
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: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/266994 )
Change subject: [bugfix] Don't reset Bot._site to None if we have already a site object
......................................................................
[bugfix] Don't reset Bot._site to None if we have already a site object
Bug: T125046
Change-Id: Id900d93b6235ea4ec60a0db97d7b7da2828fcaad
---
M pywikibot/bot.py
1 file changed, 6 insertions(+), 2 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 2708755..d450a6d 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -1537,11 +1537,15 @@
instead which specifically handle multiple or single sites.
"""
- def __init__(self, **kwargs):
+ def __init__(self, site=None, **kwargs):
"""Create a Bot instance and initalize cached sites."""
# TODO: add warning if site is specified and generator
# contains pages from a different site.
- self._site = kwargs.pop('site', None)
+ # Do not set self._site to None if we already have it
+ if site is not None:
+ self._site = site
+ elif not hasattr(self, '_site'):
+ self._site = None
self._sites = set([self._site] if self._site else [])
super(Bot, self).__init__(**kwargs)
--
To view, visit https://gerrit.wikimedia.org/r/266994
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id900d93b6235ea4ec60a0db97d7b7da2828fcaad
Gerrit-Change-Number: 266994
Gerrit-PatchSet: 3
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: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/454777 )
Change subject: [doc] Update HISTORY.rst
......................................................................
[doc] Update HISTORY.rst
Change-Id: I2a30d575a0cf6d12c32d73a66c83293a09932eb6
---
M HISTORY.rst
1 file changed, 17 insertions(+), 0 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index 09bd15b..f856aad 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,7 +4,24 @@
Current release
---------------
+* pywikibot.site.Siteinfo: Fix the bug in cache_time when loading a CachedRequest (T202227)
+* pagegenerators._handle_recentchanges: Do not request for reversed results (T199199)
+* Use a key for filter_unique where appropriate (T199615)
+* pywikibot.tools: Add exceptions for first_upper (T200357)
+* Fix usages of site.namespaces.NAMESPACE_NAME (T201969)
+* pywikibot/textlib.py: Fix header regex to allow comments
+* Use 'rvslots' when fetching revisions on MW 1.32+ (T200955)
* Drop the '2' from PYWIKIBOT2_DIR, PYWIKIBOT2_DIR_PWB, and PYWIKIBOT2_NO_USER_CONFIG environment variables. The old names are now deprecated. The other PYWIKIBOT2_* variables which were used only for testing purposes have been renamed without deprecation. (T184674)
+* Introduce a timestamp in deprecated decorator (T106121)
+* textlib.extract_sections: Remove footer from the last section (T199751)
+* Don't let WikidataBot crash on save related errors (T199642)
+* Allow different projects to have different L10N entries (T198889)
+* remove color highlights before fill function (T196874)
+* Fix Portuguese file namespace translation in cc (T57242)
+* textlib._create_default_regexes: Avoid using inline flags (T195538)
+* Not everything after a language link is footer (T199539)
+* code cleanups
+* New mediawiki projects were provided
* Bugfixes and improvements
* Localisation updates
--
To view, visit https://gerrit.wikimedia.org/r/454777
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2a30d575a0cf6d12c32d73a66c83293a09932eb6
Gerrit-Change-Number: 454777
Gerrit-PatchSet: 1
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: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)