jenkins-bot submitted this change.
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.