Last modified: 2014-08-21 12:41:54 UTC
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.
Change 155512 had a related patch set uploaded by XZise: [FIX] Allow instantiation of CategoryRemoveRobot https://gerrit.wikimedia.org/r/155512
Change 155512 merged by jenkins-bot: [FIX] Allow instantiation of CategoryRemoveRobot https://gerrit.wikimedia.org/r/155512