Revision: 4363 Author: cosoleto Date: 2007-09-25 15:05:53 +0000 (Tue, 25 Sep 2007)
Log Message: ----------- fix bug #1802037: upload.py doesn't work when used with local file
Modified Paths: -------------- trunk/pywikipedia/upload.py
Modified: trunk/pywikipedia/upload.py =================================================================== --- trunk/pywikipedia/upload.py 2007-09-25 14:08:05 UTC (rev 4362) +++ trunk/pywikipedia/upload.py 2007-09-25 15:05:53 UTC (rev 4363) @@ -154,7 +154,7 @@ # don't do it because it only accepts ASCII characters in the # filename. file = open(self.url,"rb") - self_contents = file.read() + self._contents = file.read() file.close()
# Isolate the pure name @@ -322,4 +322,4 @@ try: main(sys.argv[1:]) finally: - wikipedia.stopme() + wikipedia.stopme() \ No newline at end of file
pywikipedia-l@lists.wikimedia.org