jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/669007 )
Change subject: [cleanup] Deprecate User.name() method in favour of User.username property ......................................................................
[cleanup] Deprecate User.name() method in favour of User.username property
Show a FutureWarning if deprecated User.name() is used
Change-Id: I5297d35ded399c2759aa65ae9a272467e08837b2 --- M pywikibot/page/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py index d2f8e66..009aeb6 100644 --- a/pywikibot/page/__init__.py +++ b/pywikibot/page/__init__.py @@ -2822,7 +2822,7 @@ pywikibot.output( 'This is an autoblock ID, you can only use to unblock it.')
- @deprecated('User.username', since='20160504') + @deprecated('User.username', since='20160504', future_warning=True) def name(self) -> str: # pragma: no cover """ The username.
pywikibot-commits@lists.wikimedia.org