Revision: 4566 Author: cosoleto Date: 2007-11-17 12:58:09 +0000 (Sat, 17 Nov 2007)
Log Message: ----------- bugfix
Modified Paths: -------------- trunk/pywikipedia/copyright_put.py
Modified: trunk/pywikipedia/copyright_put.py =================================================================== --- trunk/pywikipedia/copyright_put.py 2007-11-17 12:33:04 UTC (rev 4565) +++ trunk/pywikipedia/copyright_put.py 2007-11-17 12:58:09 UTC (rev 4566) @@ -207,8 +207,8 @@ # if a page in 'Image' or 'Category' namespace is checked then fix # title section by adding ':' in order to avoid wiki code effects.
- wikitext = re.sub(u'(?i)=== [[%s:' % join_family_data('Image', 6), ur'== [[:\1:', wikitext) - wikitext = re.sub(u'(?i)=== [[%s:' % join_family_data('Category', 14), ur'== [[:\1:', wikitext) + wikitext = re.sub(u'(?i)=== [[%s:' % join_family_data('Image', 6), ur'=== [[:\1:', wikitext) + wikitext = re.sub(u'(?i)=== [[%s:' % join_family_data('Category', 14), ur'=== [[:\1:', wikitext)
# TODO: # List of frequent rejected address to improve upload process.