jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[cleanup] Remove deprecated properties of solve_disambiguation.py

Change-Id: I5fcfbe5b571b871e0e9c18e8770f89b32b6ed5a9
---
M scripts/solve_disambiguation.py
1 file changed, 1 insertion(+), 90 deletions(-)

diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py
index 6ca824c..16506b1 100755
--- a/scripts/solve_disambiguation.py
+++ b/scripts/solve_disambiguation.py
@@ -106,12 +106,7 @@
NoPageError,
PageSaveRelatedError,
)
-from pywikibot.tools import (
- deprecated,
- first_lower,
- first_upper,
- issue_deprecation_warning,
-)
+from pywikibot.tools import first_lower, first_upper, issue_deprecation_warning
from pywikibot.tools.formatter import SequenceOutputter


@@ -704,90 +699,6 @@
DisambiguationRobot""".format(options=added_keys,
classname=self.__class__.__name__))

- # Deprecated properties ---------------------------------------
-
- @property
- @deprecated('opt.always', since='20210303')
- def always(self): # noqa: D102
- return self.opt.always
-
- @always.setter
- @deprecated('opt.always', since='20210303')
- def always(self, value):
- self.opt.always = value
-
- @property
- @deprecated('opt.dnskip', since='20210303')
- def dnSkip(self): # noqa: D102
- return self.opt.dnskip
-
- @dnSkip.setter
- @deprecated('opt.dnskip', since='20210303')
- def dnSkip(self, value):
- self.opt.dnskip = value
-
- @property
- @deprecated('opt.primary', since='20210303')
- def primary(self): # noqa: D102
- return self.opt.primary
-
- @primary.setter
- @deprecated('opt.primary', since='20210303')
- def primary(self, value):
- self.opt.primary = value
-
- @property
- @deprecated('opt.main', since='20210303')
- def main_only(self): # noqa: D102
- return self.opt.main
-
- @main_only.setter
- @deprecated('opt.main', since='20210303')
- def main_only(self, value):
- self.opt.main = value
-
- @property
- @deprecated('opt.first', since='20210303')
- def first_only(self): # noqa: D102
- return self.opt.first
-
- @first_only.setter
- @deprecated('opt.first', since='20210303')
- def first_only(self, value):
- self.opt.first = value
-
- @property
- @deprecated('opt.min', since='20210303')
- def minimum(self): # noqa: D102
- return self.opt.min
-
- @minimum.setter
- @deprecated('opt.min', since='20210303')
- def minimum(self, value):
- self.opt.min = value
-
- @property
- @deprecated('opt.pos', since='20210303')
- def alternatives(self): # noqa: D102
- return self.opt.pos
-
- @alternatives.setter
- @deprecated('opt.pos', since='20210303')
- def alternatives(self, value):
- self.opt.pos = value
-
- @property
- @deprecated('opt.just', since='20210303')
- def getAlternatives(self): # noqa: D102
- return self.opt.just
-
- @getAlternatives.setter
- @deprecated('opt.just', since='20210303')
- def getAlternatives(self, value):
- self.opt.just = value
-
- # -------------------------------------------------------------
-
def checkContents(self, text: str) -> Optional[str]: # noqa: N802
"""
Check if the text matches any of the ignore regexes.

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5fcfbe5b571b871e0e9c18e8770f89b32b6ed5a9
Gerrit-Change-Number: 722854
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged