Bugs item #3369136, was opened at 2011-07-17 07:23 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3369136...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None
Status: Closed Resolution: Fixed
Priority: 7 Private: No Submitted By: Mikko Silvonen (silvonen) Assigned to: xqt (xqt) Summary: category.py crashes with NameError in pywikibot/i18n.py
Initial Comment: The changes in r9398 ("remove i18n code duplication for language fallback") seem to have broken category.py.
category.py -pt:5 move
Please enter the old name of the category: Klondiken kultaryntäykseen liittyneet henkiklöt Please enter the new name of the category: Klondiken kultaryntäykseen liittyneet henkilöt Traceback (most recent call last): File "C:\svn\pywikipedia\category.py", line 949, in <module> main() File "C:\svn\pywikipedia\category.py", line 919, in main bot.run() File "C:\svn\pywikipedia\category.py", line 412, in run pywikibot.translate(site, cfd_templates)) File "c:\svn\pywikipedia\pywikibot\i18n.py", line 201, in translate if pywikibot.default_family in xdict: NameError: global name 'pywikibot' is not defined
python version.py
Pywikipedia [http] trunk/pywikipedia (r9409, 2011/07/16, 23:05:34) Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-07-17 11:55
Message: done in r9410
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3369136...
pywikipedia-bugs@lists.wikimedia.org