Skip to content

Commit

Permalink
[cleanup] remove -repository option which was never implemented in core
Browse files Browse the repository at this point in the history
Change-Id: Iddc89be2f5127c9965b78639728deb6e169344b6
  • Loading branch information
xqt committed Oct 28, 2024
1 parent 534cbd7 commit 213c56a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/interwiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@
above for the format, one can for example give
"en:something" or "20:" as hint.
-repository Include data repository
-same Looks over all 'serious' languages for the same title.
``-same`` is equivalent to ``-hint:all``.
Expand Down Expand Up @@ -566,10 +564,11 @@ def readOptions(self, option: str) -> bool:
elif arg == 'lack':
self.lacklanguage, _, minlinks = value.partition(':')
self.minlinks = int(minlinks or 1)
elif arg in ('cleanup', 'confirm', 'force', 'hintnobracket',
'hintsareright', 'initialredirect', 'localonly', 'quiet',
'repository', 'same', 'select', 'skipauto',
'untranslated'):
elif arg in (
'cleanup', 'confirm', 'force', 'hintnobracket', 'hintsareright',
'initialredirect', 'localonly', 'quiet', 'same', 'select',
'skipauto', 'untranslated',
):
assert hasattr(self, arg)
assert value == ''
setattr(self, arg, True)
Expand Down Expand Up @@ -643,8 +642,7 @@ class Subject(interwiki_graph.Subject):
"""

def __init__(self, origin=None, hints=None, conf=None) -> None:
"""
Initializer.
"""Initializer.
Takes as arguments the Page on the home wiki
plus optionally a list of hints for translation
Expand All @@ -653,7 +651,6 @@ def __init__(self, origin=None, hints=None, conf=None) -> None:

super().__init__(origin)

self.repoPage = None
# todo is a list of all pages that still need to be analyzed.
# Mark the origin page as todo.
self.todo = SizedKeyCollection('site')
Expand Down

0 comments on commit 213c56a

Please sign in to comment.