https://bugzilla.wikimedia.org/show_bug.cgi?id=69829
Bug ID: 69829 Summary: CategoryRemoveRobot can not be instantiated Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: copyright.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
CategoryRemoveRobot.__init__ is wrapped in decorator @deprecated('CategoryMoveRobot.__init__()')
As __init__ is special, it needs to be invoked differently by the deprecated wrapper.
WARNING: CategoryRemoveRobot.__init__ is DEPRECATED, use CategoryMoveRobot.__init__() instead. Traceback (most recent call last): File "pwb.py", line 171, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 69, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/cfd.py", line 178, in <module> main() File "scripts/cfd.py", line 131, in main useSummaryForDeletion=True, inPlace=True) File "../pywikibot/__init__.py", line 448, in wrapper return method(*args, **kwargs) File "scripts/category.py", line 686, in __init__ pagesonly=pagesonly) TypeError: unbound method __init__() must be called with CategoryMoveRobot instance as first argument (got nothing instead)
script cfd also uses this class.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69829
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 155512 had a related patch set uploaded by XZise: [FIX] Allow instantiation of CategoryRemoveRobot
https://gerrit.wikimedia.org/r/155512
https://bugzilla.wikimedia.org/show_bug.cgi?id=69829
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=69829
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 155512 merged by jenkins-bot: [FIX] Allow instantiation of CategoryRemoveRobot
https://gerrit.wikimedia.org/r/155512
https://bugzilla.wikimedia.org/show_bug.cgi?id=69829
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org