Xqt has submitted this change and it was merged.
Change subject: pyflakes for login.py and generate_family_file.py ......................................................................
pyflakes for login.py and generate_family_file.py
I change login too, to accept username as an argumant
Change-Id: I47b92bf0667cba035ae215a7aa3d697f07b9c6c2 --- M generate_family_file.py M login.py 2 files changed, 2 insertions(+), 7 deletions(-)
Approvals: Xqt: Looks good to me, approved
diff --git a/generate_family_file.py b/generate_family_file.py index 8a01e1f..190a866 100644 --- a/generate_family_file.py +++ b/generate_family_file.py @@ -21,7 +21,7 @@ from distutils.version import LooseVersion as V
# creating urls -from urlparse import urlparse, urljoin, ParseResult +from urlparse import urlparse, urljoin
# retrieving urls import urllib2 diff --git a/login.py b/login.py index 44aef3b..ebeccc7 100644 --- a/login.py +++ b/login.py @@ -56,9 +56,7 @@ __version__ = '$Id$'
import re -import os import query -import urllib2 import wikipedia as pywikibot import config
@@ -354,9 +352,6 @@ api = False return self.login(False, retry) if cookiedata: - fn = '%s-%s-%s-login.data' % (self.site.family.name, - self.site.lang, self.username) - #self.storecookiedata(fn,cookiedata) pywikibot.output(u"Should be logged in now") # Show a warning according to the local bot policy if not self.botAllowed(): @@ -401,7 +396,7 @@
def main(): - username = password = None + password = None sysop = False logall = False forceLogin = False
pywikibot-commits@lists.wikimedia.org