http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11572
Revision: 11572 Author: valhallasw Date: 2013-05-24 07:15:36 +0000 (Fri, 24 May 2013) Log Message: ----------- Flickrripper: strip _ around filenames. Patch by David E. Narv?\195?\161ez ( dmaggot )
Modified Paths: -------------- trunk/pywikipedia/flickrripper.py
Modified: trunk/pywikipedia/flickrripper.py =================================================================== --- trunk/pywikipedia/flickrripper.py 2013-05-20 12:20:18 UTC (rev 11571) +++ trunk/pywikipedia/flickrripper.py 2013-05-24 07:15:36 UTC (rev 11572) @@ -203,6 +203,7 @@ title = re.sub(u",,+", u",", title) title = re.sub(u"[-,^]([.]|$)", u"\1", title) title = title.replace(u" ", u"_") + title = title.strip(u"_") return title
pywikipedia-svn@lists.wikimedia.org