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: [email protected]
          Reporter: [email protected]
       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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to