Revision: 7380
Author: multichill
Date: 2009-10-06 19:46:15 +0000 (Tue, 06 Oct 2009)
Log Message:
-----------
Fix encoding problem. The destination filename was encoded to utf-8 twice. This
caused derived bots (flickrripper.py and imagecopy.py) to produce faulty
filenames.
Modified Paths:
--------------
trunk/pywikipedia/upload.py
Modified: trunk/pywikipedia/upload.py
===================================================================
--- trunk/pywikipedia/upload.py 2009-10-06 06:39:04 UTC (rev 7379)
+++ trunk/pywikipedia/upload.py 2009-10-06 19:46:15 UTC (rev 7380)
@@ -227,7 +227,7 @@
formdata["wpEditToken"] = self.targetSite.getToken()
# Set the new filename
- formdata["wpDestFile"] = encodedFilename
+ formdata["wpDestFile"] = filename
# try to encode the strings to the encoding used by the target site.
# if that's not possible (e.g. because there are non-Latin-1
characters and
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn