jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[cleanup] Remove deprecate_arg decorator in pywikibot/__init__.py

Change-Id: Ie9bdd532274dde06a3a7671fc463f8a2a5d481e6
---
M pywikibot/__init__.py
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index e0e55e4..e728654 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -71,7 +71,6 @@
ModuleDeprecationWrapper as _ModuleDeprecationWrapper,
)
from pywikibot.tools import classproperty
-from pywikibot.tools import deprecate_arg as _deprecate_arg
from pywikibot.tools import normalize_username
from pywikibot.tools.formatter import color_format

@@ -227,7 +226,6 @@

_items = ('lat', 'lon', 'entity')

- @_deprecate_arg('entity', 'globe_item')
def __init__(self, lat: float, lon: float, alt: Optional[float] = None,
precision: Optional[float] = None,
globe: Optional[str] = None, typ: str = '',
@@ -648,7 +646,6 @@
return json

@classmethod
- @_deprecate_arg('wb', 'data')
def fromWikibase(cls: WB_TIME_CLASS, data: Dict[str, Any],
site: Optional[DataSite] = None) -> 'WbTime':
"""
@@ -797,7 +794,6 @@
return json

@classmethod
- @_deprecate_arg('wb', 'data')
def fromWikibase(cls: WB_QUANTITY_CLASS, data: Dict[str, Any],
site: Optional[DataSite] = None) -> 'WbQuantity':
"""
@@ -849,7 +845,6 @@
return json

@classmethod
- @_deprecate_arg('wb', 'data')
def fromWikibase(cls: WB_MONOLINGUAL_TEXT_CLASS, data: Dict[str, Any],
site: Optional[DataSite] = None) -> 'WbMonolingualText':
"""
@@ -1074,7 +1069,6 @@
return self.json

@classmethod
- @_deprecate_arg('json', 'data')
def fromWikibase(cls: WB_UNKNOWN_CLASS, data: Dict[str, Any],
site: Optional[DataSite] = None) -> 'WbUnknown':
"""
@@ -1120,7 +1114,6 @@
return matched_sites[0]


-@_deprecate_arg('sysop', True)
def Site(code: Optional[str] = None,
fam: OPT_STR_OR_FAMILY = None,
user: Optional[str] = None, *,

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie9bdd532274dde06a3a7671fc463f8a2a5d481e6
Gerrit-Change-Number: 729232
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged