jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/607072 )
Change subject: [IMPR] a wait time may be given with -simulate option
......................................................................
[IMPR] a wait time may be given with -simulate option
This is a more realistic simulation because it simulates a delay for
each write action.
Change-Id: I3fa4b5f430e8d59a5648eb89cb6042b752f1d809
---
M pywikibot/bot.py
M pywikibot/data/api.py
2 files changed, 6 insertions(+), 1 deletion(-)
Approvals:
Matěj Suchánek: Looks good to me, but someone else must approve
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 1dc7855..ca6af38 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -210,6 +210,8 @@
-simulate Disables writing to the server. Useful for testing and
debugging of new code (if given, doesn't do any real
changes, but only shows what would have been changed).
+ An integer or float value may be given to simulate a
+ processing time; the bot just waits for given seconds.
-<config var>:n You may use all given numeric config variables as option and
modify it with command line.
@@ -839,7 +841,7 @@
output('NOTE: option cosmetic_changes is %s\n'
% config.cosmetic_changes)
elif option == '-simulate':
- config.simulate = True
+ config.simulate = value or True
#
# DEBUG control:
#
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 8a80457..28b64e4 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -1592,6 +1592,9 @@
pywikibot.output(color_format(
'{lightyellow}SIMULATION: {0} action blocked.{default}',
action))
+ # for more realistic simulation
+ if config.simulate is not True:
+ pywikibot.sleep(float(config.simulate))
return {action: {'result': 'Success', 'nochange': ''}}
def _is_wikibase_error_retryable(self, error):
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/607072
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I3fa4b5f430e8d59a5648eb89cb6042b752f1d809
Gerrit-Change-Number: 607072
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609525 )
Change subject: [cleanup] Remove deprecated Site methods
......................................................................
[cleanup] Remove deprecated Site methods
Remove oudated Site methods after several years.
The FutureWarning was made before 3.0.20200405
Change-Id: I3fd9b1778165714a6f8baea1c12105de5ce191f3
---
M pywikibot/site/__init__.py
1 file changed, 0 insertions(+), 83 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index f7b20ab..9be6405 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -1108,19 +1108,6 @@
'{site.family.name}_family for {site}'.format(site=self))
return pywikibot.Category(pywikibot.Link(name, self))
- @deprecated('pywikibot.Link', since='20090307', future_warning=True)
- def linkto(self, title, othersite=None):
- """DEPRECATED. Return a wikilink to a page.
-
- @param title: Title of the page to link to
- @type title: str
- @param othersite: Generate a interwiki link for use on this site.
- @type othersite: BaseSite or None
-
- @rtype: str
- """
- return pywikibot.Link(title, self).astext(othersite)
-
def isInterwikiLink(self, text):
"""Return True if text is in the form of an interwiki link.
@@ -1236,11 +1223,6 @@
# deprecated methods for backwards-compatibility
- @deprecated('family attribute', since='20090307', future_warning=True)
- def fam(self):
- """Return Family object for this Site."""
- return self.family
-
@deprecated('pywikibot.data.api.encode_url', since='20151211')
def urlEncode(self, query):
"""DEPRECATED."""
@@ -1998,21 +1980,6 @@
return True
- @deprecated('Site.user()', since='20090307', future_warning=True)
- @remove_last_args(['sysop'])
- def loggedInAs(self):
- """Return the current username if logged in, otherwise return None.
-
- DEPRECATED (use .user() method instead)
-
- @param sysop: if True, test if user is logged in as the sysop user
- instead of the normal user.
- @type sysop: bool
-
- @rtype: bool
- """
- return self.logged_in() and self.user()
-
def is_oauth_token_available(self):
"""
Check whether OAuth token is set for this site.
@@ -4337,21 +4304,6 @@
apgen.request['gapdir'] = 'descending'
return apgen
- @deprecated('Site.allpages()', since='20090307', future_warning=True)
- def prefixindex(self, prefix, namespace=0, includeredirects=True):
- """Yield all pages with a given prefix. Deprecated.
-
- Use allpages() with the prefix= parameter instead of this method.
- """
- if not includeredirects:
- filterredir = False
- elif includeredirects == 'only':
- filterredir = True
- else:
- filterredir = None
- return self.allpages(prefix=prefix, namespace=namespace,
- filterredir=filterredir)
-
@deprecated_args(step=None)
def alllinks(self, start='!', prefix='', namespace=0, unique=False,
fromids=False, total=None):
@@ -4419,15 +4371,6 @@
acgen.request['gacdir'] = 'descending'
return acgen
- @deprecated('Site.allcategories()', since='20090307', future_warning=True)
- def categories(self, number=10, repeat=False):
- """DEPRECATED."""
- if repeat:
- limit = None
- else:
- limit = number
- return self.allcategories(total=limit)
-
def isBot(self, username):
"""Return True is username is a bot user."""
return username in (userdata['name'] for userdata in self.botusers())
@@ -6262,32 +6205,6 @@
return all('linkupdate' in page for page in result)
return True
- @deprecated('Site().exturlusage', since='20090529', future_warning=True)
- def linksearch(self, siteurl, limit=None, euprotocol=None):
- """Backwards-compatible interface to exturlusage()."""
- return self.exturlusage(siteurl, total=limit, protocol=euprotocol)
-
- @deprecated('Site().allimages(sha1=hash_found)', since='20141219',
- future_warning=True)
- def getFilesFromAnHash(self, hash_found):
- """
- Return all files that have the same hash.
-
- DEPRECATED: Use L{APISite.allimages} instead using 'sha1'.
- """
- return [image.title(with_ns=False)
- for image in self.allimages(sha1=hash_found)]
-
- @deprecated('Site().allimages(sha1=hash_found)', since='20141219',
- future_warning=True)
- def getImagesFromAnHash(self, hash_found):
- """
- Return all images that have the same hash.
-
- DEPRECATED: Use L{APISite.allimages} instead using 'sha1'.
- """
- return self.getFilesFromAnHash(hash_found)
-
@need_right('edit')
def is_uploaddisabled(self):
"""Return True if upload is disabled on site.
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609525
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I3fd9b1778165714a6f8baea1c12105de5ce191f3
Gerrit-Change-Number: 609525
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609277 )
Change subject: page.botMayEdit: Use site.username() instead of site.user()
......................................................................
page.botMayEdit: Use site.username() instead of site.user()
site.user() only returns a username when the bot is logged in, according
to site.logged_in(). However, bots using OAUTH are not considered to be
logged in, so site.user() returns None. This causes OAUTH bots to ignore
the username lists in {{bots}}, which is highly undesireble.
site.username() will return the username that the bot would use if it
were currently logged-in, regardless of if it is or not. If no username
is specified at all, it returns an empty string instead of None. This
will still result in botMayEdit ignoring the username list when no
username is found.
Bug: T153541
Change-Id: Icf9e6f2c7181ddcf908475b075a5eff32a8abf78
---
M pywikibot/page/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
JJMC89: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index a4605a0..027de03 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -1186,7 +1186,7 @@
if config.ignore_bot_templates: # Check the "master ignore switch"
return True
- username = self.site.user()
+ username = self.site.username()
try:
templates = self.templatesWithParams()
except (pywikibot.NoPage,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609277
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Icf9e6f2c7181ddcf908475b075a5eff32a8abf78
Gerrit-Change-Number: 609277
Gerrit-PatchSet: 1
Gerrit-Owner: AntiCompositeNumber <anticompositenumber+wmcs(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609468 )
Change subject: Archive scripts/cfd.py
......................................................................
Archive scripts/cfd.py
The script is focused on the English Wikipedia, is not run there,
and would result in incorrect actions if it were.
Bug: T223826
Change-Id: I0ac56ab57456e0088f3a18d93c4eeabb646c8096
---
M docs/scripts/scripts.rst
M scripts/README.rst
R scripts/archive/cfd.py
M tests/script_tests.py
M tox.ini
5 files changed, 4 insertions(+), 11 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/docs/scripts/scripts.rst b/docs/scripts/scripts.rst
index 088b454..942a24a 100644
--- a/docs/scripts/scripts.rst
+++ b/docs/scripts/scripts.rst
@@ -61,11 +61,6 @@
.. automodule:: scripts.category_redirect
-scripts.cfd script
-------------------
-
-.. automodule:: scripts.cfd
-
scripts.checkimages script
--------------------------
diff --git a/scripts/README.rst b/scripts/README.rst
index b51e4fb..f07b822 100644
--- a/scripts/README.rst
+++ b/scripts/README.rst
@@ -46,10 +46,6 @@
+------------------------+---------------------------------------------------------+
| #censure.py | Bad word checker bot. |
+------------------------+---------------------------------------------------------+
- | cfd.py | Processes the categories for discussion working page. |
- | | It parses out the actions that need to be taken as a |
- | | result of CFD discussions and performs them. |
- +------------------------+---------------------------------------------------------+
| checkimages.py | Check recently uploaded files. Checks if a file |
| | description is present and if there are other problems |
| | in the image's description. |
@@ -262,6 +258,10 @@
+----------------------------------------------------------------------------------+
| archive | Scripts no longer maintained. |
+========================+=========================================================+
+ | cfd.py | Processes the categories for discussion working page. |
+ | | It parses out the actions that need to be taken as a |
+ | | result of CFD discussions and performs them. |
+ +------------------------+---------------------------------------------------------+
| featured.py | A robot to check feature articles. |
+------------------------+---------------------------------------------------------+
diff --git a/scripts/cfd.py b/scripts/archive/cfd.py
similarity index 100%
rename from scripts/cfd.py
rename to scripts/archive/cfd.py
diff --git a/tests/script_tests.py b/tests/script_tests.py
index 1ba774e..033991e 100644
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -94,7 +94,6 @@
'casechecker',
'catall',
'category_redirect',
- 'cfd',
'checkimages',
'clean_sandbox',
'disambredir',
diff --git a/tox.ini b/tox.ini
index 7e7c361..701a212 100644
--- a/tox.ini
+++ b/tox.ini
@@ -162,7 +162,6 @@
scripts/casechecker.py : N802, N803, N806, N815
scripts/category.py : N803, N806, N802
scripts/category_redirect.py : N803, N806, N802
- scripts/cfd.py : N803, N806, N802
scripts/checkimages.py : N801, N802, N803, N806, N816
scripts/clean_sandbox.py : N815, N816
scripts/commonscat.py : N802, N803, N806, N816
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609468
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0ac56ab57456e0088f3a18d93c4eeabb646c8096
Gerrit-Change-Number: 609468
Gerrit-PatchSet: 3
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609491 )
Change subject: Fix fatal errors caused by dicts lacking "title" attribute
......................................................................
Fix fatal errors caused by dicts lacking "title" attribute
In data/api.py, line 3040, occasionally the Wikimedia API will return a data item
that lacks a "title" attribute, causing a fatal error. This patch skips those items.
Change-Id: Id0bb248af1333fff88857c0e61c21f0602e0ebf4
---
M pywikibot/data/api.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 8a80457..c8851d5 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -3037,9 +3037,9 @@
def _fully_retrieved_data_dicts(self, resultdata):
"""Yield items of self._previous_dicts that are not in resultdata."""
- resuldata_titles = {d['title'] for d in resultdata}
+ resultdata_titles = {d['title'] for d in resultdata if 'title' in d}
for prev_title, prev_dict in self._previous_dicts.copy().items():
- if prev_title not in resuldata_titles:
+ if prev_title not in resultdata_titles:
yield prev_dict
del self._previous_dicts[prev_title]
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609491
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Id0bb248af1333fff88857c0e61c21f0602e0ebf4
Gerrit-Change-Number: 609491
Gerrit-PatchSet: 5
Gerrit-Owner: Russell Blau <russblau(a)imapmail.org>
Gerrit-Reviewer: Legoktm <legoktm(a)member.fsf.org>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Multichill <maarten(a)mdammers.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609515 )
Change subject: [4.0] Prepare next release 4.0
......................................................................
[4.0] Prepare next release 4.0
- update ROADMAP.rst and HISTORY.rst
- update pywikibot/README.rst
- Update version number in pywikibot/__init__.py and setup.py
detached from f95296a6fb
Change-Id: Ica52e91a7998a2af58574231720e2b55965fc351
---
M HISTORY.rst
M ROADMAP.rst
M pywikibot/README.rst
M pywikibot/__init__.py
M setup.py
5 files changed, 25 insertions(+), 25 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index a9792fd..57bb03f 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,21 @@
Release history
===============
+3.0.20200703
+------------
+
+* Page.botMayEdit() method was improved (T253709)
+* PageNotFound, SpamfilterError, UserActionRefuse exceptions were removed (T253681)
+* tools.ip submodule has been removed (T243171)
+* Wait in BaseBot.exit() until asynchronous saving pages are completed
+* Solve IndexError when showing an empty diff with a non-zero context (T252724)
+* linktrails were added or updated for a lot of sites
+* Resolve namespaces with underlines (T252940)
+* Fix getversion_svn for Python 3.6+ (T253617, T132292)
+* Bugfixes and improvements
+* Localisation updates
+
+
3.0.20200609
------------
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 8b316bd..f33490c 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,29 +1,16 @@
Current release
~~~~~~~~~~~~~~~
- **Note: This is the last release supporting Python 2 and Python 3.4**
-
-* Page.botMayEdit() method was improved (T253709)
-* PageNotFound, SpamfilterError, UserActionRefuse exceptions were removed (T253681)
-* tools.ip submodule has been removed (T243171)
-* Wait in BaseBot.exit() until asynchronous saving pages are completed
-* Solve IndexError when showing an empty diff with a non-zero context (T252724)
-* linktrails were added or updated for a lot of sites
-* Resolve namespaces with underlines (T252940)
-* Fix getversion_svn for Python 3.6+ (T253617, T132292)
-* Bugfixes and improvements
-* Localisation updates
+* Support for Python 2 and 3.4 has been dropped (T213287, T239542)
Future releases
~~~~~~~~~~~~~~~
-* (current) Unsupported debug parameter of UploadRobot will be removed
-* (current) Unported compat decode parameter of Page.title() will be removed
-* (current) tools.count, tools.Counter, tools.OrderedDict and ContextManagerWrapper will be removed
-* (current) getFilesFromAnHash and getImagesFromAnHash Site methods will be removed
+* 3.0.30300703: Unsupported debug parameter of UploadRobot will be removed
+* 3.0.30300703: Unported compat decode parameter of Page.title() will be removed
+* 3.0.30300703: tools.count, tools.Counter, tools.OrderedDict and ContextManagerWrapper will be removed
+* 3.0.30300703: getFilesFromAnHash and getImagesFromAnHash Site methods will be removed
* 3.0.20200508: Page.getVersionHistory and Page.fullVersionHistory() methods will be removed (T136513, T151110)
* 3.0.20200405: Site and Page methods deprecated for 10 years or longer will be removed
* 3.0.20200326: Functions dealing with stars list will be removed
* 3.0.20200306: Support of MediaWiki releases below 1.19 will be dropped (T245350)
-* 3.0.20200111: Support for Python 3.4 will be dropped shortly (T239542)
-* 3.0.20190722: Support for Python 2 will be dropped shortly (T213287)
diff --git a/pywikibot/README.rst b/pywikibot/README.rst
index 4513f58..08b668f 100644
--- a/pywikibot/README.rst
+++ b/pywikibot/README.rst
@@ -27,12 +27,10 @@
* python-tkinter (optional, used by some experimental GUI stuff)
-You need to have at least Python version `2.7.4 <http://www.python.org/download/>`_
+You need to have at least Python version `3.5.0 <http://www.python.org/download/>`_
or newer installed on your computer to be able to run any of the code in this
-package, but not 3.0-3.3. Support for older versions of Python is not planned
-and versions 2.7 and 3.4 will be dropped soon as well. It works fine with 3.5+
-versions of Python installed. Please refer the manual at mediawiki for further
-details and restrictions.
+package. Please refer the manual at mediawiki for further details and
+restrictions.
You do not need to "install" this package to be able to make use of
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 1e08813..8bd01df 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -7,7 +7,7 @@
#
from __future__ import absolute_import, division, unicode_literals
-__version__ = __release__ = '3.1.dev0'
+__version__ = __release__ = '4.0.dev0'
__url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
import atexit
diff --git a/setup.py b/setup.py
index 21711c2..5d5a2e5 100644
--- a/setup.py
+++ b/setup.py
@@ -167,7 +167,7 @@
@return: pywikibot module version string
@rtype: str
"""
- version = '3.0'
+ version = '4.0'
try:
import subprocess
date = subprocess.check_output(
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/609515
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ica52e91a7998a2af58574231720e2b55965fc351
Gerrit-Change-Number: 609515
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/608419 )
Change subject: [IMPR] Use pywikibot.__version__ for version informations
......................................................................
[IMPR] Use pywikibot.__version__ for version informations
detached from I7ffe9096f
Bug: T197936
Change-Id: Id23a279afabe8501c9658e9d5e222cf3d0d7894e
---
M docs/conf.py
1 file changed, 4 insertions(+), 12 deletions(-)
Approvals:
Dvorapa: Looks good to me, but someone else must approve
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py
index 6b934c4..4b42f93 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -30,6 +30,9 @@
sys.path.insert(0, repo_dir)
os.chdir(repo_dir)
+os.environ['PYWIKIBOT_NO_USER_CONFIG'] = '1'
+import pywikibot # noqa: E402
+
# -- General configuration ----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@@ -67,11 +70,7 @@
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
-#
-# The short X.Y version.
-version = '3.0'
-# The full version, including alpha/beta/rc tags.
-release = '3.0.20200609'
+version = release = pywikibot.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -256,11 +255,6 @@
# texinfo_show_urls = 'footnote'
-def pywikibot_env():
- """Allow pywikibot modules to be imported without a user-config.py."""
- os.environ['PYWIKIBOT_NO_USER_CONFIG'] = '1'
-
-
def pywikibot_script_docstring_fixups(app, what, name, obj, options, lines):
"""Pywikibot specific conversions."""
from scripts.cosmetic_changes import warning
@@ -357,8 +351,6 @@
app.add_autodoc_attrgetter(type, pywikibot_family_classproperty_getattr)
-pywikibot_env()
-
autodoc_default_options = {
'members': True,
'undoc-members': True,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/608419
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Id23a279afabe8501c9658e9d5e222cf3d0d7894e
Gerrit-Change-Number: 608419
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged