Bugs item #1821360, was opened at 2007-10-27 21:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=182136…
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic_changes.py crashes
Initial Comment:
Trace below should be self-explanatory:
cosmetic_changes.py -lang:pt Portugal
Checked for
running processes. 2 processes currently running, including the current process.
ATTENTION: You can run this script as a stand-alone for testing purposes.
However, the changes are that are made are only minor, and other users
might get angry if you fill the version histories and watchlists with such
irrelevant changes.
Do you really want to continue? ([y]es, [N]o) y
Getting 1 pages from wikipedia:pt...
>> Portugal <<<
Traceback (most
recent call last):
File "D:\Work\pywikipediabot-HEAD\pywikipedia\cosmetic_changes.py", line 398,
in <module>
main()
File "D:\Work\pywikipediabot-HEAD\pywikipedia\cosmetic_changes.py", line 394,
in main
bot.run()
File "D:\Work\pywikipediabot-HEAD\pywikipedia\cosmetic_changes.py", line 359,
in run
self.treat(page)
File "D:\Work\pywikipediabot-HEAD\pywikipedia\cosmetic_changes.py", line 340,
in treat
changedText = ccToolkit.change(page.get())
File "D:\Work\pywikipediabot-HEAD\pywikipedia\cosmetic_changes.py", line 88,
i
n change
text = self.cleanUpLinks(text)
File "D:\Work\pywikipediabot-HEAD\pywikipedia\cosmetic_changes.py", line 259,
in cleanUpLinks
text = wikipedia.replaceExcept(text, linkR, handleOneLink, ['comment',
'math
', 'nowiki', 'pre', 'startspace'])
File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 2813, in
rep
laceExcept
new = new.replace('\\n', '\n')
AttributeError: 'function' object has no attribute 'replace'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=182136…