Last modified: 2014-08-21 12:41:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71829, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69829 - CategoryRemoveRobot can not be instantiated
CategoryRemoveRobot can not be instantiated
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
copyright.py (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-21 05:58 UTC by John Mark Vandenberg
Modified: 2014-08-21 12:41 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-08-21 05:58:47 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.
Comment 1 Gerrit Notification Bot 2014-08-21 09:57:33 UTC
Change 155512 had a related patch set uploaded by XZise:
[FIX] Allow instantiation of CategoryRemoveRobot

https://gerrit.wikimedia.org/r/155512
Comment 2 Gerrit Notification Bot 2014-08-21 10:38:53 UTC
Change 155512 merged by jenkins-bot:
[FIX] Allow instantiation of CategoryRemoveRobot

https://gerrit.wikimedia.org/r/155512

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links