writers.py - fix MediaWiki uploading

Ignore-this: f7c95d5482f4077fbeef93ed72ed1c96

darcs-hash:20101227080108-82ea9-75c594beef8e268f3c606551bc9b063eeb2cd432.gz
This commit is contained in:
Richard Darst 2010-12-27 00:01:08 -08:00
parent 4e871bf64c
commit 95526e8d5b

View File

@ -1176,7 +1176,7 @@ class MediaWiki(_BaseWriter):
force_login = (mwusername != None)
site = mwclient.Site(mwsite, force_login=force_login)
if(login):
if(force_login):
site.login(mwusername, mwpassword)
page = site.Pages[mwfullname]
some = page.edit()