Revision: 6981 Author: nicdumz Date: 2009-06-21 14:22:19 +0000 (Sun, 21 Jun 2009)
Log Message: ----------- Simplifying separator handling for edit summary. Fixes #2808158
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-06-21 14:09:50 UTC (rev 6980) +++ trunk/pywikipedia/interwiki.py 2009-06-21 14:22:19 UTC (rev 6981) @@ -1892,19 +1892,19 @@
head, add, rem, mod = wikipedia.translate(insite.lang, msg)
- addtrail = u'' - remtrail = u'' - modtrail = u'' - trail = u'' + sep = u''
if adding: - mods += (add + colon + comma.join([fmt(new, x) for x in adding]) + addtrail) + mods += (add + colon + comma.join([fmt(new, x) for x in adding])) + sep = u' ' if removing: - mods += (rem + colon + comma.join([fmt(old, x) for x in removing]) + remtrail) + mods += (sep + rem + colon + comma.join([fmt(old, x) for x in removing])) + sep = u' ' if modifying: - mods += (mod + colon + comma.join([fmt(new, x) for x in modifying]) + modtrail) + mods += (sep + mod + colon + comma.join([fmt(new, x) for x in modifying])) + sep = u' ' if mods: - mcomment = head + mods + trail + mcomment = head + mods return mods, mcomment, adding, removing, modifying
def readWarnfile(filename, bot):
pywikipedia-svn@lists.wikimedia.org