jenkins-bot submitted this change.

View Change

Approvals: Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
Deprecate pywikibot.__release__

pywikibot is following PEP396 and __release__ isn't used inside the framework
anymore.

Change-Id: I4f8017c7e18366d87c7b44af07e1825583e66f47
---
M pywikibot/__init__.py
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index cbd8352..472ac7d 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -22,8 +22,6 @@
__copyright__, __description__, __download_url__, __license__,
__maintainer__, __maintainer_email__, __name__, __url__, __version__)

-__release__ = __version__ # backward compatibility
-
from pywikibot._wbtypes import WbRepresentation as _WbRepresentation
from pywikibot.bot import (
input, input_choice, input_yn, inputChoice, handle_args, showHelp, ui,
@@ -1453,3 +1451,6 @@
warning_message='pywikibot.MediaWikiVersion is deprecated; '
'use pywikibot.tools.MediaWikiVersion instead.',
since='20180827')
+wrapper._add_deprecated_attr('__release__', __version__,
+ replacement_name='pywikibot.__version__',
+ since='20200707')

To view, visit change 433972. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I4f8017c7e18366d87c7b44af07e1825583e66f47
Gerrit-Change-Number: 433972
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: Dvorapa <dvorapa@seznam.cz>
Gerrit-MessageType: merged